Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Oct 2000 23:18:21 -0300
From:      "Matt Rudderham" <matt@researcher.com>
To:        <dima@unixfreak.org>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   RE: OT: Virtual Hosts & Apache
Message-ID:  <NDBBLEKOOLGIBFPGLFEKCEAFCFAA.matt@researcher.com>
In-Reply-To: <20001011225546.D9D381F26@static.unixfreak.org>

next in thread | previous in thread | raw e-mail | index | archive | help
>> Hi,
>> I have a small question about virtual hosts in Apache, I have them up and
>> runnig, but I was wondering if in the httpd.conf, if two ServerName
options
>> for the same hosts, ie, I would like both names listed to look in the
same
>> DocumentRoot):
>> ServerName something.com
>> ServerName www.something.com
>
>I believe you are looking for ServerAlias.  For example:
>
><VirtualHost www.unixfreak.org>
>        ServerName www.unixfreak.org
>        ServerAlias unixfreak.org
>        ServerAdmin dima@unixfreak.org
>	[...]
></VirtualHost>
>
>ServerAlias can also take multiple arguments, as in: "ServerAlias
>www.something.com www.something-else.com".
>
>Hope this helps

Exactly wha I was looking for, thanks to all who answered :)
- Matt



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?NDBBLEKOOLGIBFPGLFEKCEAFCFAA.matt>