Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Sep 2001 16:58:07 +0200
From:      =?ISO-8859-1?B?U/hyZW4gTmVpZ2FhcmQ=?= <neigaard@e-box.dk>
To:        Walter Betancourt <walt@betan.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: http configuration
Message-ID:  <1647929271.20010929165807@e-box.dk>
In-Reply-To: <4.2.2.20010929104739.00a3f930@popd.betan.net>
References:  <4.2.2.20010929104739.00a3f930@popd.betan.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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>

You can do some additional stuff inside the VirtualHost if you want.
Feel free to ask me more on subject :)

--
Med venlig hilsen/Best regards,
 Søren Neigaard mailto:neigaard@e-box.dk



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?1647929271.20010929165807>