Afficher un message
Vieux 16/11/2005, 18h01   #1
Kevin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Using host headers to forward to a different server (not virtual host)

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

  Réponse avec citation
 
Page generated in 0,04588 seconds with 9 queries