From owner-freebsd-questions Tue Jul 4 5:14:24 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.wmptl.com (mail2.wmptl.com [216.221.73.131]) by hub.freebsd.org (Postfix) with ESMTP id D3C7237B8A5 for ; Tue, 4 Jul 2000 05:14:14 -0700 (PDT) (envelope-from webmaster@wmptl.com) Received: from wmptl.com ([10.0.0.168]) by mail2.wmptl.com (8.9.3/8.9.3) with ESMTP id IAA13408; Tue, 4 Jul 2000 08:34:57 -0400 (EDT) (envelope-from webmaster@wmptl.com) Message-ID: <3961D4B0.3423DEDA@wmptl.com> Date: Tue, 04 Jul 2000 08:12:32 -0400 From: Nathan Vidican X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: Spikeman Cc: questions@freebsd.org Subject: Re: Apache Virtualhosts an multiple addresses References: <3961CF36.104BB7D6@wmptl.com> <3961D38D.9A74CE2A@myself.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Spikeman wrote: > > Yes,, you can set up a vhost in apache, you should beable > to do this on the vhosts dir in your apache conf dirs.. > just change the needed info... should look someting > like this.. > > > ServerAdmin webmaster@host.some_domain.com > DocumentRoot /home/web000/public_html > ServerName 192.168.0.0 > ErrorLog logs/192.168.0.0-error_log > TransferLog logs/192.168.0.0-access_log > ScriptAlias /cgi-bin/ /home/web000/public_html/cgi-bin/ > > > 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 > > -- > ___ > /\ \ phase two of global domination in operation, hide all lions. > /::\ \ > /:/\:\ \ Comments or Questions email spikeman@myself.com > _\:\~\:\ \ > /\ \:\ \:\__\ Spikeman spikeman@myself.com > \:\ \:\ \/__/ http://www.spikeman.net > \:\ \:\__\ Find Me On EFNET /whois Spikeman > \:\/:/ / > \::/ / Friends are lights in winter; > \/__/ The older the friend, the brighter the light. Again, I am using NAME based hosting, there are almost 200 sites hosted on that one IP address. My virtualhost setup looks something like this: NameVirtualHosts x.94.149.9:80 ServerName www.whatever.com DocumentRoot /home/someuser/public_html ServerName www.whatever.net DocumentRoot /home/user/public_html ServerName www.whatelse.com DocumentRoot /home/some-user/public_html I cannot simply put and host on an IP basis; we're expecting to host in the neighborhood of 2-3 thousand websites, and we don't want to waste static IP's on those we don't have to. -- 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