Virtual Hosts

OOzy Pal oozypal at gmail.com
Fri Jun 9 11:30:14 UTC 2006


What is wrong with my Virtual Host config? When I do

$sudo apachectl configtest

I get the following warnings

[Fri Jun  9 14:24:25 2006] [warn] _default_ VirtualHost overlap on
port 80, the first has precedence
[Fri Jun  9 14:24:25 2006] [warn] NameVirtualHost 192.168.10.1:80 has
no VirtualHosts

My /etc/hosts looks like:

127.0.0.1 localhost
192.168.10.1 oozy www.oozy.com

192.168.10.1 www.ez.com
192.168.10.1 www.al.org

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
192.168 bjaili

My VH part of httpd.conf looks like:

Listen 80

NameVirtualHost 192.168.10.1:80
NameVirtualHost 192.168.10.1

<VirtualHost *:80>
    <Directory /home/oozy/www/html/al>
        Options FollowSymLinks
	AllowOverride None
	Allow from All
    </Directory>

     ErrorLog  "/home/oozy/www/html/al/var/log/apache_error_log"
     CustomLog 	"/home/oozy/www/html/al/var/log/apache_access_log" common

     DirectoryIndex index.php
     DocumentRoot /home/oozy/www/html/al/
     ServerName   www.al.org
</VirtualHost>

<VirtualHost *:80>
    <Directory /home/hab/www/html/ez>
        Options FollowSymLinks
	AllowOverride None
	Allow from All
    </Directory>

     ErrorLog  "/home/oozy/www/html/ez/var/log/apache_error_log"
     CustomLog 	"/home/oozy/www/html/ez/var/log/apache_access_log" common

     DirectoryIndex index.php
     DocumentRoot /home/oozy/www/html/ez/
     ServerName   www.ez.com
     ServerAlias  admin.ez.com
</VirtualHost>





-- 
OOzy
Kubuntu-Dapper




More information about the ubuntu-users mailing list