Web Hosting Talk







View Full Version : httpd problem


Q8man
11-29-2003, 09:54 PM
Hello,

I'm trying to set up VirtualHost for our site and the httpd server is down. Please help!!

This is the error message I get

Starting httpd:
[Sat Nov 29 17:03:26 2003] [warn] VirtualHost arab.6arab.com:80 overlaps with VirtualHost ads.6arab.com:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Nov 29 17:03:26 2003] [warn] VirtualHost 1.6arab.com:80 overlaps with VirtualHost arab.6arab.com:80, the first has precedence, perhaps you need a NameVirtualHost directive


This is how we set up our http.conf:

<VirtualHost *:80>
ServerAdmin root@localhost
DocumentRoot /home/6arab
ServerName www.6arab.com
ErrorLog logs/www.6arab.com-error_log
CustomLog logs/www.6arab.com-access_log common
<Directory "/home/6arab">
AllowOverride None
Options Includes
AddOutputFilter Includes shtml
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost 1.6arab.com:80>
ServerAdmin root@localhost
DocumentRoot /home1/1
ServerName 1.6arab.com
ErrorLog logs/1.6arab.com-error_log
CustomLog logs/1.6arab.com-access_log common
<Directory "/home1/1">
AllowOverride None
Options Includes
AddOutputFilter Includes shtml
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost arab.6arab.com:80>
ServerAdmin root@localhost
DocumentRoot /home1/arab
ServerName arab.6arab.com
ErrorLog logs/arab.6arab.com-error_log
CustomLog logs/arab.6arab.com-access_log common
<Directory "/home1/arab">
AllowOverride None
Options Includes
AddOutputFilter Includes shtml
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost ads.6arab.com:80>
ServerAdmin root@localhost
DocumentRoot /home1/ads
ServerName ads.6arab.com
ErrorLog logs/ads.6arab.com-error_log
CustomLog logs/ads.6arab.com-access_log common
<Directory "/home1/ads">
AllowOverride None
Options Includes
AddOutputFilter Includes shtml
Order allow,deny
Allow from all
</Directory>
</VirtualHost>


Please advice on how we can fix this problem

Thanks
Eisa

Burhan
11-30-2003, 02:05 AM
Welcome to WHT :)

I'm not an Apache expert, but
try removing your first <VirutalHost> directive (comment it out) and restart Apache.

eBoundary
11-30-2003, 02:15 AM
Do you have a "NameVirtualHost IP_Address:80" directive defined?

Jakiao
11-30-2003, 02:28 AM
The issue is this: you used hostnamed for ip's. Set IP's for NameVirtualHost and then replace the hostnames in each <VirtualHost> directive with a listed IP. Then, set the ServerName to what you had in VirtualHost before.

Also, if not that, the *:80 takes all ip's, thus anything below it becomes unusable because the IP's aren't shared.

Q8man
11-30-2003, 08:27 PM
thanks all

We figured it out..