Many name - same IP

Aaron Peterson dopplecoder at gmail.com
Mon Sep 19 09:32:51 PDT 2005


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


More information about the freebsd-questions mailing list