This is a discussion on Can Apache server forward http requests to other apache boxes? within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hello, I have one IP address on the internet. A linux box running apache (via Redhat Linux 9) has port ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello,
I have one IP address on the internet. A linux box running apache (via Redhat Linux 9) has port 80 facing the internet. People can access this box by typing (www.domaina.com). Now when an internet user types in a certain domain (ie. www.domainb.com), I want apache on the first machine, to forward that request to a second linux/apache box on the same subnet, that handles all requests for www.domainb.com. Can apache do this/is this possible? Note I *do not* want to just run apache on the second box on port 81 or something. I want both domains to be on port 80, go to the same IP address, but the first apache be able to route http requests to domainb.com, on its own. Can it be done? Thank you! Jack |
|
|||
|
Unless the second machine has a global IP address (then just make a
VirtualHost on the first machine and redirect host domainb.com to the second IP address via some header("Location: ...") directive), you are facing a routing problem, which can not be solved in such a direct manner (i.e. DNAT/SNAT will redirect all requests, independent of the content of the packet) ... jack turer wrote: > Hello, > > I have one IP address on the internet. > A linux box running apache (via Redhat Linux 9) has port 80 facing the > internet. People can access this box by typing (www.domaina.com). > > Now when an internet user types in a certain domain (ie. www.domainb.com), > I want apache on the first machine, to forward that request to a second > linux/apache box on the same subnet, that handles all requests for > www.domainb.com. > > Can apache do this/is this possible? > > Note I *do not* want to just run apache on the second box on port 81 or > something. I want both domains to be on port 80, go to the same IP > address, but the first apache be able to route http requests to > domainb.com, on its own. > > Can it be done? > > Thank you! > > Jack |