Date: Tue, 4 Jul 2000 14:19:51 +0200 From: Marc Silver <marcs@draenor.org> To: Nathan Vidican <webmaster@wmptl.com> Cc: questions@freebsd.org Subject: Re: Apache Virtualhosts an multiple addresses Message-ID: <20000704141951.K82739@draenor.org> In-Reply-To: <3961D240.9CE8B23B@wmptl.com>; from webmaster@wmptl.com on Tue, Jul 04, 2000 at 08:02:08AM -0400 References: <3961CF36.104BB7D6@wmptl.com> <20000704135719.J82739@draenor.org> <3961D240.9CE8B23B@wmptl.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <VirtualHost> 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: > > > > <VirtualHost x.x.x.x> > > 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 > > </VirtualHost> > > > > 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 <VirtualHost > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000704141951.K82739>