Here's the scenario:
I have some sites that I want Apache to serve and others that I want IIS to handle. I want Apache to be the front for IIS. If a user requests http://www.apachesite.com, I want it to hit the virtual host for that site and serve it up. However, if a user requests http://www.iissite.com, I want it to hit Apache's virtul host entry for that site which has a proxy line in it to send it over to the IIS server for processing.
I followed a guide on how to do this (I am a novice when it comes to server setups. Just learning).
http://www.codecurry.com/2009/05/run-ii ... ether.html
So, I think I have my IIS only listening to requests on port 8080 and Apache is set to listen to port 80. I've confirmed this is working by typing in the IP of the pc and appending the port: 192.168.1.3:8080 resolves to the IIS default site, while 192.168.1.3 resolves to the only other site set up under Apache. So, it appears the ports are set correctly. Here's what my httpd.conf file looks like:
- Code: Select all
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
ProxyRequests Off #keep proxy to OFF or your server will act as a forward proxy
#Add proxy redirect to IIS for iissite.com
Options Indexes FollowSymLinks
Allow from all
# sends all requests made to port 80 to another port 8080
ProxyPass / http://www.iissite.com:8080/
#makes proper changes to server-side redirection header
ProxyPassReverse / http://www.iissite.com:8080/
#Add apachesite.com as virtual host
The apache site works perfectly. But when I request the iis site, I get a "Service Temporarily Unavailable" error from apache.
What am I missing?