From owner-freebsd-questions Tue Jul 4 5:20:48 2000 Delivered-To: freebsd-questions@freebsd.org Received: from draenor.org (draenor.org [196.36.119.129]) by hub.freebsd.org (Postfix) with ESMTP id 67B2937B869 for ; Tue, 4 Jul 2000 05:20:39 -0700 (PDT) (envelope-from marcs@draenor.org) Received: from marcs by draenor.org with local (Exim 3.15 #1) id 139Rg7-00026e-00; Tue, 04 Jul 2000 14:19:51 +0200 Date: Tue, 4 Jul 2000 14:19:51 +0200 From: Marc Silver To: Nathan Vidican Cc: questions@freebsd.org Subject: Re: Apache Virtualhosts an multiple addresses Message-ID: <20000704141951.K82739@draenor.org> References: <3961CF36.104BB7D6@wmptl.com> <20000704135719.J82739@draenor.org> <3961D240.9CE8B23B@wmptl.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <3961D240.9CE8B23B@wmptl.com>; from webmaster@wmptl.com on Tue, Jul 04, 2000 at 08:02:08AM -0400 X-Operating-System: FreeBSD 4.0-STABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG No offense, but this is named based hosting. I'm hosting numerous sites on my web server, all running off the same IP address. :) If you read the sample apache.conf file, you'll see: # BindAddress: You can support virtual hosts with this option. This # directive is used to tell the server which IP address to listen to. It # can either contain "*", an IP address, or a fully qualified Internet # domain name. See also the and Listen directives. # BindAddress x.x.x.x Then, just set it up as per my previous example, and you're using name based (HTTP 1.1) based hosting. Cheers, Marc On Tue, Jul 04, 2000 at 08:02:08AM -0400, Nathan Vidican wrote: > Marc Silver wrote: > > > > Why not just use the ServerAlias line in apache. :) > > > > For eg: > > > > > > ServerAdmin webmaster@x.org > > DocumentRoot /usr/local/x > > ServerName x.org > > ServerAlias www.x.org www.superman.org www.yougettheidea.org > > ErrorLog /usr/local/logs/www.x.org-error_log > > CustomLog /usr/local/logs/www.x.org-access_log common > > > > > > Something like that should work just fine. > > > > Cheers, > > Marc > > > > On Tue, Jul 04, 2000 at 07:49:10AM -0400, Nathan Vidican wrote: > > > Is it possible, to have name-based virtual hosting wherein any given > > > virtual host can be accessed as somehost.com, or www.somehost.com; > > > preferably without having to add to virtual hosts to the system? > > > > > > > > > -- > > > Nathan Vidican > > > webmaster@wmptl.com > > > Windsor Match Plate & Tool Ltd. > > > http://www.wmptl.com/ > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > I'm working with NAME based hosting here, I can't do x.x.x.x>. I don't know if servername will work? > > -- > Nathan Vidican > webmaster@wmptl.com > Windsor Match Plate & Tool Ltd. > http://www.wmptl.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message