From owner-freebsd-questions Wed Oct 11 15:55:52 2000 Delivered-To: freebsd-questions@freebsd.org Received: from static.unixfreak.org (static.unixfreak.org [63.198.170.139]) by hub.freebsd.org (Postfix) with ESMTP id 9741437B502 for ; Wed, 11 Oct 2000 15:55:47 -0700 (PDT) Received: by static.unixfreak.org (Postfix, from userid 1000) id D9D381F26; Wed, 11 Oct 2000 15:55:46 -0700 (PDT) Subject: Re: OT: Virtual Hosts & Apache In-Reply-To: "from Matt Rudderham at Oct 11, 2000 04:56:31 pm" To: Matt Rudderham Date: Wed, 11 Oct 2000 15:55:46 -0700 (PDT) Cc: freebsd-questions@FreeBSD.ORG From: Dima Dorfman Reply-To: dima@unixfreak.org X-Mailer: ELM [version 2.4ME+ PL82 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Message-Id: <20001011225546.D9D381F26@static.unixfreak.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [ Charset ISO-8859-1 unsupported, converting... ] > 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: ServerName www.unixfreak.org ServerAlias unixfreak.org ServerAdmin dima@unixfreak.org [...] ServerAlias can also take multiple arguments, as in: "ServerAlias www.something.com www.something-else.com". Hope this helps -- Dima Dorfman Finger dima@unixfreak.org for my public PGP key. "To repeat what others have said, requires education; to challenge it, requires brains." -- Mary Poole To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message