You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Steve Teater <st...@aarecov.com> on 2005/07/18 14:53:54 UTC

[users@httpd] Mutliple Physical Servers with different host names at the same IP Address

I apologize if this question has been asked before. What I am trying to do is set up multiple physical servers behind a firewall. Each server would be accessed via their own host name, with all of the host names point to the same ip address. I tried using ProxyPass on the main server, but every address was pulling up the main site, and not the ones they were supposed to. I am using Apache 2.0.54 with all of the defaults, mod_proxy, and worker mpm. Is there a better way to do what I am trying to do?

Steve


Re: [users@httpd] Mutliple Physical Servers with different host names at the same IP Address

Posted by Marian Marinov <ha...@hydra.azilian.net>.
Hello,
Once I had a similer problem. My solution was to use a local dns server which 
had the local IPs of every server behind the firewall and I configured DNAT 
to the hostnames not to the IPs so every request which goes to 
host1.domain.tld was received on my internet interface but was deliverd to 
localip1 on my local interface. It is not very simple and it is most likely 
the worst solution but it worked for me. 

Regards
	M.Marinov
На 18.7.2005 15:53 Steve Teater написа:
> I apologize if this question has been asked before. What I am trying to do
> is set up multiple physical servers behind a firewall. Each server would be
> accessed via their own host name, with all of the host names point to the
> same ip address. I tried using ProxyPass on the main server, but every
> address was pulling up the main site, and not the ones they were supposed
> to. I am using Apache 2.0.54 with all of the defaults, mod_proxy, and
> worker mpm. Is there a better way to do what I am trying to do?
>
> Steve

-- 
------------------------------
  One Planet, One Internet.
  We Are All Connected.
------------------------------

---------------------------------------------------------------------
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] Mutliple Physical Servers with different host names at the same IP Address

Posted by Steve Teater <st...@aarecov.com>.
This is how my network is physically setup right now:

                                                DSL Modem
                                                        |
                                               IPCop Firewall
                                                        |
                                                    switch
                                                    /        \
                                        ServerA        ServerB

ServerA and ServerB are supposed to serve different domains, servera.com and
serverb.com. ServerA is also to act as the "main" webserver, only passing
off requests to serverb for serverb.com. Both servers have Suse Linux 9.2
installed. ServerB is using the apache supplied with Suse (2.0.50) ServerA
is using a freshly installed Apache 2.0.54, with the mod_proxy module. I
currently have all html requests being sent to ServerB, which happily serves
them up, no problems. When I switch the port over to ServerA, it does not
redirect anything for serverb.com to serverb, just displays the site setup
on servera. ServerA was setup with this virtualhost to handle the requests
to serverb.com:

<VirtualHost serverb.com:*>
ProxyPreserveHost on
ProxyPass / http://xxx.xxx.xxx.xxx/
ServerName serverb.com
</VirtualHost>

That was all I added to the default configuration.
Steve

----- Original Message ----- 
From: "Joshua Slive" <js...@gmail.com>
To: <us...@httpd.apache.org>
Sent: Monday, July 18, 2005 9:14 AM
Subject: Re: [users@httpd] Mutliple Physical Servers with different host
names at the same IP Address


> On 7/18/05, Steve Teater <st...@aarecov.com> wrote:
> >
> >
> > I apologize if this question has been asked before. What I am trying to
do
> > is set up multiple physical servers behind a firewall. Each server would
be
> > accessed via their own host name, with all of the host names point to
the
> > same ip address. I tried using ProxyPass on the main server, but every
> > address was pulling up the main site, and not the ones they were
supposed
> > to. I am using Apache 2.0.54 with all of the defaults, mod_proxy, and
worker
> > mpm. Is there a better way to do what I am trying to do?
>
> See the ProxyPassPreserveHost directive.  And if that doesn't fix it,
> you need to more carefully explain your architecture.
>
> Joshua.
>
> ---------------------------------------------------------------------
> 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
>
>


---------------------------------------------------------------------
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] Mutliple Physical Servers with different host names at the same IP Address

Posted by Joshua Slive <js...@gmail.com>.
On 7/18/05, Steve Teater <st...@aarecov.com> wrote:
>  
>  
> I apologize if this question has been asked before. What I am trying to do
> is set up multiple physical servers behind a firewall. Each server would be
> accessed via their own host name, with all of the host names point to the
> same ip address. I tried using ProxyPass on the main server, but every
> address was pulling up the main site, and not the ones they were supposed
> to. I am using Apache 2.0.54 with all of the defaults, mod_proxy, and worker
> mpm. Is there a better way to do what I am trying to do? 

See the ProxyPassPreserveHost directive.  And if that doesn't fix it,
you need to more carefully explain your architecture.

Joshua.

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