Can Apache server forward http requests to other apache boxes?

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


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-28-2003
jack turer
 
Posts: n/a
Default Can Apache server forward http requests to other apache boxes?

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
  #2 (permalink)  
Old 10-28-2003
Maxim A Belushkin
 
Posts: n/a
Default Re: Can Apache server forward http requests to other apache boxes?

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


 
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 09:30 AM.


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