Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 60664 invoked by uid 500); 13 May 2003 16:59:06 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 60600 invoked from network); 13 May 2003 16:59:05 -0000 Received: from ny2.fastmail.fm (HELO smtp.us2.messagingengine.com) (66.111.4.3) by daedalus.apache.org with SMTP; 13 May 2003 16:59:05 -0000 Received: from www.fastmail.fm (server1.internal [10.202.2.132]) by server2.messagingengine.com (Postfix) with ESMTP id 734C75DD3E for ; Tue, 13 May 2003 12:59:06 -0400 (EDT) Received: from 127.0.0.1 ([127.0.0.1] helo=www.fastmail.fm) by messagingengine.com with SMTP; Tue, 13 May 2003 12:59:06 -0400 X-Epoch: 1052845146 X-Sasl-enc: idGWQ54SqwqNQVPGVvyM+g Received: from usager70-65.hec.ca (usager70-65.hec.ca [132.211.70.65]) by www.fastmail.fm (Postfix) with ESMTP id AD8A8BB3 for ; Tue, 13 May 2003 12:59:05 -0400 (EDT) Date: Tue, 13 May 2003 12:58:41 -0400 (=?ISO-8859-1?Q?Est_=28heure_d'=E9t=E9=29?=) From: Joshua Slive To: users@httpd.apache.org In-Reply-To: Message-ID: References: X-X-Sender: slive@www.fastmail.fm MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: RE: [users@httpd] "Fake" virtual hosts 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 * ServerName first.server DocumentRoot ... 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 FAQ. Joshua. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See 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