From owner-freebsd-questions Wed Jan 16 13:29:55 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.27in.tv (roc-66-24-112-7.rochester.rr.com [66.24.112.7]) by hub.freebsd.org (Postfix) with ESMTP id 19F9B37B402 for ; Wed, 16 Jan 2002 13:29:33 -0800 (PST) Received: (from root@localhost) by mail.27in.tv (8.11.6/8.11.6) id g0GLTVY80717; Wed, 16 Jan 2002 16:29:31 -0500 (EST) (envelope-from cjm2@earthling.net) Received: from 27in.tv (roc-66-24-112-7.rochester.rr.com [66.24.112.7]) by mail.27in.tv (8.11.6/8.11.6av) with SMTP id g0GLTTL80708; Wed, 16 Jan 2002 16:29:29 -0500 (EST) (envelope-from cjm2@earthling.net) Received: from 216.132.171.28 (SquirrelMail authenticated user cjm2) by www1.27in.tv with HTTP; Wed, 16 Jan 2002 16:29:29 -0500 (EST) Message-ID: <50682.216.132.171.28.1011216569.squirrel@www1.27in.tv> Date: Wed, 16 Jan 2002 16:29:29 -0500 (EST) Subject: Re: Apache Virtual Domains: Quick Config Question From: "C J Michaels" To: In-Reply-To: <3C45630E.11086.9F178C@localhost> References: <3C45630E.11086.9F178C@localhost> X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal Cc: , X-Mailer: SquirrelMail (version 1.2.3 [cvs]) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG What I've honestly found to work the best is the following: BindAddress * Listen *:80 NamedVirtualHost *:80 ServerName www.example.org ServerAlias xyz.example.org ... ServerName a.b.c.d ServerAlias test.example.org ... ServerName www2.example.org ServerAlias abc.example.org ... So on, so forth. This _default_:80 entry is designed specifically for requests that don't fall into one of the other Virtual servers, and this is determined by the ServerName and ServerAlias directives. In my experience, on a system with multiple IP addresses you MUST specific a BindAddress directive, whether it's set to "*" or an ip is up to you. --Chris ScaryG said: > On 16 Jan 2002 at 18:03, Andrey Simonenko wrote: > >> As I understood you don't need to use BindAddress, instead: >> >> 1.specify "Listen 80" - http #port >> 2. specify "NameVirtualHost IP1", "NameVirtualHost IP2". >> 3. create for all your vhosts, each >> of VirtualHost section should have "ServerName", etc. > > Awh, now that makes sense. > > Use one 'NameVirtualHost a.b.c.d' for the 'main' web domain > > Then setup other 'NameVirtualHost a.b.c.e' for other domains. > > (and set the listen to port 80) > > I get that... thanks. > > gf > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Gerry Freymann - Senior Systems Manager > eagle.ca Internet Services www.eagle.ca > Voice: 905-373-9313 Fax: 905-373-1801 > http://www.eagle.ca/support > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -- Chris "I'll defend to the death your right to say that, but I never said I'd listen to it!" -- Tom Galloway with apologies to Voltaire To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message