December 6th, 2004, 04:33 AM
Join Date: Nov 2004
Time spent in forums: < 1 sec
Reputation Power: 0
OK. worked this out. Redirects in IIS are just amazingly limited. If we didn't have ASP pages we would dump IIS and go to Apache. Anyhow, here's our solution and it has worked for a week now without issue at about 5,000 hits a day on the IIS server and about 500-1,000 hits a day on the 192.168.0.50 server. There seems to be no performance hit although we aren't a busy website.
1) We moved IIS to port 90. No need to open Port 90 on our firewall as no external IP's will ever connect directly to the IIS server. They will all be routed via the Apache server.
2) Deleted the subdomain entry on the IIS server
3) Turned off host headers. Actually we couldn't delete our customised host headers so we just deleted the main website entry in IIS and recreated it.
4) Installed Apache 2 on port 80 on the main server
5) Edited httpd.conf in Apache and added 3 things
a) Listen 80
b) ServerName ourdomain.dom:80
c) added 2 virtual hosts to the config file as below.
# This 1st entry redirects to the IIS server on port 90
ProxyPass / http://our.ip.address:90/
ProxyPassReverse / http://our.ip.address:90/
# This 2nd and final entry redirects to our Apache server on 192.168.0.50
ProxyPass / http://192.168.0.50/
ProxyPassReverse / http://192.168.0.50/
Just to be sure, we have rebooted the server a few times and this solution works without intervention.
Last edited by IIS_dummy : December 6th, 2004 at 04:38 AM.
Reason: Added 2 x extra details