Date: Sat, 29 Sep 2001 16:45:21 +0100 From: Kevin Golding <kevin@caomhin.demon.co.uk> To: =?iso-8859-1?q?S=F8ren_Neigaard?= <neigaard@e-box.dk> Cc: Walter Betancourt <walt@betan.com>, freebsd-questions@freebsd.org Subject: Re: http configuration Message-ID: <xSZI3DBRyet7Ewbf@caomhin.demon.co.uk> In-Reply-To: <1647929271.20010929165807@e-box.dk> References: <4.2.2.20010929104739.00a3f930@popd.betan.net> <1647929271.20010929165807@e-box.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <1647929271.20010929165807@e-box.dk>, Søren Neigaard
<neigaard@e-box.dk> 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
>
><VirtualHost YOUR_IP_HERE>
> ServerName AnyDomain.com
></VirtualHost>
>
><VirtualHost YOUR_IP_HERE>
> ServerName www.AnyDomain.com
></VirtualHost>
Just a personal taste thing but look into aliases as well:
<VirtualHost YOUR_IP_HERE>
ServerName AnyDomain.com
ServerAlias www.AnyDomain.com
</VirtualHost>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xSZI3DBRyet7Ewbf>
