Forum Moderators: phranque

Message Too Old, No Replies

HELP Redirecting HTTP requests to different local servers using domain

Using linux based web servers in a local network with only 1 public IP

         

ghbarratt

6:28 pm on Sep 21, 2007 (gmt 0)

10+ Year Member



I have 2 web servers, one has Fedora 7 and the other Fedora Core 6. I want to add another Windows box. All three computers are behind a single router which has only one public IP. The servers have private IPs.

I want to set up one web server (one of the Fedora boxes) to initially receive all the HTTP requests but redirect those requests, based on the domain and subdomain in the request, to the other web servers on the local network?

I would do it in the router if the router would let me, but it does not. The router only allows me to reroute the request to different local IPs based on port numbers. Once again I want all the port 80 (HTTP) requests to be routed to different web servers, which is determined using the domain and subdomain.

I do not even know what tool I can use in Fedora to do this. My guess is either squid or iptables for now but I have no experience with either of those.

PLEASE HELP!