Many name - same IP

Gerard Seibert gerard-seibert at suscom.net
Mon Sep 19 14:32:00 PDT 2005


On Mon, 19 Sep 2005 12:32:48 -0400, Aaron Peterson <dopplecoder at gmail.com>
Replied to: Re: Many name - same IP
With these words of wisdom:

> 
> On 9/19/05, Carstea Catalin <carstea.catalin at gmail.com> wrote:
> > i must setup in zone file
> > 
> > blog1 CNAME blogspot
> > blog2 CNAME blogspot
> > blog3 CNAME blogspot
> > 
> > and in httpd.conf
> > 
> > <virtualhost blog1.blogspot:80>
> > <directory blog1>
> > </virtualhost>
> > 
> > <virtualhost blog2.blogspot:80>
> > <directory blog2>
> > </virtualhost>
> 
> I believe you will want something more like the following:
> 
> NameVirtualHost  66.102.155.101:80
> 
> <VirtualHost 66.102.155.101:80>
> ServerName blog1.blogspot.com
> DocumentRoot /var/www/blog1
> </VirtualHost>
> 
> <VirtualHost 66.102.155.101:80>
> ServerName blog2.blogspot.com
> DocumentRoot /var/www/blog2
> </VirtualHost>
> 
> There is plenty of documentation about Name Based Virtual Hosts on the
> apache.org website.  You should look there for further information. 
> If you use IRC, you can also look for help on irc.freenode.net
> #apache.
> 
> Aaron

*************** REPLY SEPARATOR ***************
On 9/19/2005 5:24:20 PM Gerard Seibert Replied:

I have gotten by using this configuration.

NameVirtualHost *
<VirtualHost *>
	DocumentRoot /usr/local/www/data/mysite/htdocs
	ServerName	myserver.com
<VirtualHost>

<VirtualHost *>
	DocumentRoot /usr/local/www/data/my-other-site/htdocs
	ServerName	my-other-server.com
<VirtualHost>

HTH


More information about the freebsd-questions mailing list