Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 1183 invoked by uid 500); 1 Nov 2002 22:05:18 -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 1112 invoked from network); 1 Nov 2002 22:05:13 -0000 Received: from mo2so.cg.shawcable.net (HELO mo2so-qfe2.prod.shaw.ca) (24.64.63.32) by daedalus.apache.org with SMTP; 1 Nov 2002 22:05:13 -0000 Received: from krypton ([24.64.63.15]) by mo2so.cg.shawcable.net (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0H4X008IF3WL1L@mo2so.cg.shawcable.net> for users@httpd.apache.org; Fri, 01 Nov 2002 15:02:46 -0700 (MST) Received: from shawcable.com ([24.85.227.163]) by smail-cal.shawcable.com (Sun Internet Mail Server sims.4.0.2000.05.17.04.13.p6) with ESMTP id <0H4X00DIO3X9XF@smail-cal.shawcable.com> for users@httpd.apache.org; Fri, 01 Nov 2002 15:03:10 -0700 (MST) Date: Fri, 01 Nov 2002 16:03:20 -0600 From: Evje To: users@httpd.apache.org Message-id: <3DC2FA28.D27431CF@shawcable.com> MIME-version: 1.0 X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <20021101214027.29728.qmail@web20705.mail.yahoo.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] why does my virutal site data get served whenaccessing the default site? Ditto that!!! It now works. Thanks for being so patient Boyle. Wish I could buy you a beer. :-) Selmer Scott Machtmes wrote: > > that's the concept I was missing. It works now. Many > Thanks! > > --- Boyle Owen wrote: > > Because you told it to. > > > > NameVirtualHost * > > means: > > "Check for name-based virtual hosts on all > > interfaces" > > > > Therefore the server will consider every request as > > a NBVH request. It > > will therefore look in its one and only VH container > > and try to match > > the "Host" header with the ServerName argument. If > > it fails, it will > > default to the *first* VH container - which is still > > the same one... > > > > The point is that once you decide to use VHs, you > > should forget about > > "default" sites which are external to VHs. In other > > words, you should > > put all site specific directives *inside* VH > > containers. You can still > > achieve the default effect by using the behaviour > > described above to > > your advantage, e.g. > > > > NameVirtualHost * > > > > > > ServerName any_name_you_like > > DocumentRoot /path/to/default/site > > > > > > > > ServerName mailman.englab.brocade.com > > DocumentRoot /path/to/mailman/site > > > > > > Now a request to "mailman.englab.brocade.com" will > > match the 2nd VH and > > get the mailman site. A request which does *not* > > match mailman will > > default to the first VH - even though it doesn't > > match > > "any_name_you_like". > > > > Rgds, > > > > Owen Boyle --------------------------------------------------------------------- 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