From owner-freebsd-questions Sat Sep 29 8:47: 6 2001 Delivered-To: freebsd-questions@freebsd.org Received: from tele-post-20.mail.demon.net (tele-post-20.mail.demon.net [194.217.242.20]) by hub.freebsd.org (Postfix) with ESMTP id 2658137B407 for ; Sat, 29 Sep 2001 08:47:03 -0700 (PDT) Received: from caomhin.demon.co.uk ([212.228.234.119]) by tele-post-20.mail.demon.net with esmtp (Exim 2.12 #2) id 15nMKS-000EIR-0K; Sat, 29 Sep 2001 15:47:01 +0000 Message-ID: Date: Sat, 29 Sep 2001 16:45:21 +0100 To: =?iso-8859-1?q?S=F8ren_Neigaard?= Cc: Walter Betancourt , freebsd-questions@freebsd.org From: Kevin Golding Subject: Re: http configuration References: <4.2.2.20010929104739.00a3f930@popd.betan.net> <1647929271.20010929165807@e-box.dk> In-Reply-To: <1647929271.20010929165807@e-box.dk> MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Turnpike Integrated Version 5.01 U 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 In message <1647929271.20010929165807@e-box.dk>, Søren Neigaard writes >Saturday, September 29, 2001, 4:50:26 PM, Walter wrote: > >WB> All, > >WB> I want to configure apache to respond >WB> to www.AnyDomain.com and AnyDomain.com > >WB> - with and without the www. > >WB> can some one help me on this. > >In httpd.conf do: > >NameVirtualHost YOUR_IP_HERE > > > ServerName AnyDomain.com > > > > ServerName www.AnyDomain.com > Just a personal taste thing but look into aliases as well: ServerName AnyDomain.com ServerAlias www.AnyDomain.com You can include UseCanonicalName to play with how the domain appears to visitors, http://httpd.apache.org/docs/ will tell you more. Kevin -- kevin@caomhin.demon.co.uk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message