Virtual Hosts

Waleed Harbi waleed.harbi at gmail.com
Fri Jun 9 11:45:16 UTC 2006


you can check for your Apache configuration via apatch2 -t & apache2 -S
below you will find nice docs about Vhost:

http://httpd.apache.org/docs/2.0/vhosts/

On 6/9/06, OOzy Pal <oozypal at gmail.com> wrote:
>
> 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
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>



-- 
:.Best Regards
--------------------------------------------
Open Source Open Education
Waleed Harbi ,KSA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060609/ccb94449/attachment.html>


More information about the ubuntu-users mailing list