This is a discussion on Using host headers to forward to a different server (not virtual host) within the Windows Web Servers forums, part of the Web Server and Related Forums category; I'm hoping this is possible. The situation is as follows: I have two web servers, call them ServerA and ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I'm hoping this is possible. The situation is as follows:
I have two web servers, call them ServerA and ServerB. ServerA is Apache, ServerB is IIS. My router is forwarding port 80 to ServerA and port 8080 to ServerB. ServerB is hosting a site, let's call it www.random.com. Unfortunately, I can only reach random.com by using http://www.random.com:8080, but I'd like to keep ServerA serving what it normally does. So, the question is that I'd like to use host headers on ServerA to forward requests for www.random.com on port 80 to ServerB. I tried the following but it did not work: NameVirtualHost 192.168.0.13 <VirtualHost 192.168.0.13:80> ServerName www.random.com </VirtualHost> Do I need to somehow do this at the router layer, or is there some kind of third party software I can use? If it is either of those, do you have any suggestions? Thank you! Kevin |
|
|||
|
Kevin wrote: > I have two web servers, call them ServerA and ServerB. ServerA is > Apache, ServerB is IIS. My router is forwarding port 80 to ServerA and > port 8080 to ServerB. ServerB is hosting a site, let's call it > www.random.com. Unfortunately, I can only reach random.com by using > http://www.random.com:8080, but I'd like to keep ServerA serving what > it normally does. > > So, the question is that I'd like to use host headers on ServerA to > forward requests for www.random.com on port 80 to ServerB. A reverse proxy is probably what you want. Details are available on the Apache web site. Thor -- http://www.anta.net/OH2GDF |