I have installed apache2 with all modular support. When I run it with single host everything goes ok, but if I configure it with virtualhosts, either it get stuck or it gives a message at startup saying “[warn] default VirtualHost overlap on port 80, the first has precedence” and as a result takes me to the same doc root for every host
Here is the copy of listen.conf
Listen 93.185.178.39:80
<IfDefine SSL>
<IfDefine !NOSSL>
<IfModule mod_ssl.c>
Listen 443
</IfModule>
</IfDefine>
</IfDefine>
Use name-based virtual hosting
- on a specified address / port:
NameVirtualHost 93.185.178.39:80
<VirtualHost *:80>
ServerName Metal and textile - Viva-Group (Pvt) Ltd
ServerAlias viva-group.co.nr *.viva-group.co.nr
DocumentRoot /srv/www/htdocs
<Directory “/srv/www/htdocs”>
Options Indexes FollowSymLinks
AllowOverride None
Order Allow,deny
Allow from all
</Directory>
DirectoryIndex index.html index.htm index.html.var index.shtml index.php
</VirtualHost>
<VirtualHost *:80>
ServerName My art
ServerAlias mayantal.co.nr *.mayantal.co.nr
DocumentRoot /srv/www/vhosts/mayantal.co.nr
<Directory “/srv/www/vhosts/mayantal.co.nr”>
Options Indexes FollowSymLinks
AllowOverride None
Order Allow,deny
Allow from all
</Directory>
DirectoryIndex index.html index.htm index.shtml index.html.var index.php
</VirtualHost>
I have gone through all the other conf files related and have made sure that nothing conflicts.
Could somebody help me with this?
Thanks