You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by ne...@bellsouth.net on 2007/03/28 20:59:06 UTC

[users@httpd] Redirecting to a different physical server

Hi All,

I am currently running Apache 2.0.52 on a CentOS Linux 4.4 system and am looking for some advice.

I have a single static IP address and two web sites/domains. I have a very basic gateway/firewall device configured to forward port 80 to the system hosting the web server, and I currently use Apache's virtual hosting to handle the two different domains and this all works perfectly.

I would like, however, to do run the web sites off different physical servers rather than have them both hosted on the same server machines. Essentially I am looking for some way of directing any requests for one of the two domains to a different physical server.

I have not seen any way to do this with Apache so was wondering if such a mechanism exists, or if anyone has any suggestions on how to do this.

Thanks

Neal



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Redirecting to a different physical server

Posted by Eric DuToit <er...@fedex.com>.

In a flurry of recycled electrons, Neal wrote:

> I would like to do run the web sites off different physical servers
rather > than have them both hosted on the same server machines.
Essentially I am 
> looking for some way of directing any requests for one of the two
domains > to a different physical server.

> I have not seen any way to do this with Apache so was wondering if
such a > mechanism exists, or if anyone has any suggestions on how to do
this.

If I may make several assumptions that you didn't specify:
* you only have 1 WAN IP available
* your router is not capable of handling multiple WAN IPs
* both servers are behind the firewall

I believe mod_proxy will work for you.  See
http://httpd.apache.org/docs/2.0/vhosts/examples.html#proxy

--
Eric DuToit
Sr. Technical Analyst
FedEx Services

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org