Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Sep 2005 17:31:49 -0400
From:      Gerard Seibert <gerard-seibert@suscom.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Many name - same IP
Message-ID:  <20050919172420.855B.GERARD-SEIBERT@suscom.net>
In-Reply-To: <20050919201434.CFFA716A424@hub.freebsd.org>
References:  <20050919201434.CFFA716A424@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 19 Sep 2005 12:32:48 -0400, Aaron Peterson <dopplecoder@gmail.com>
Replied to: Re: Many name - same IP
With these words of wisdom:

> 
> On 9/19/05, Carstea Catalin <carstea.catalin@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050919172420.855B.GERARD-SEIBERT>