Using host headers to forward to a different server (not virtual host)

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-16-2005
Kevin
 
Posts: n/a
Default 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

  #2 (permalink)  
Old 11-16-2005
Thor Kottelin
 
Posts: n/a
Default Re: Using host headers to forward to a different server (not virtualhost)



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
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:48 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0