httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
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 []
> >>
> >> 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

Listen 80
NameVirtualHost *

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

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

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


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message