httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject RE: [users@httpd] "Fake" virtual hosts
Date Tue, 13 May 2003 16:58:41 GMT
On Tue, 13 May 2003, Boyle Owen wrote:

> >-----Original Message-----
> >From: Joshua Slive [mailto:joshua@slive.ca]
> >>
> >> Is it possible to set up two instances of Apache on the same
> >IP and on
> >> the same port to handle requests to two different names?
>
> >
> >Only by using a reverse-proxy setup (eg. ProxyPass) to pass
> >requests from
> >one apache instance to another.
>
> How do you distinguish between the two servers at the TCP/IP layer?
> If they are sharing IP address *and* port number you can't even get the
> second server to start, surely?

I should have been a little more specific: Start one server on a
non-standard port (eg 8888), and then use the following for your other
server:

Listen 80
NameVirtualHost *

<VirtualHost *>
ServerName first.server
DocumentRoot ...
</VirtualHost>

<VirtualHost *>
ServerName second.server
ProxyPass / http://localhost:8888/
ProxyPassReverse / http://localhost:8888/
</VirtualHost>

We should really have this example in the docs someplace, since it is a
FAQ.

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


Mime
View raw message