Web Hosting Talk


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : httpd problem
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)

 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-29-2003, 09:54 PM
Q8man Q8man is offline
View Beta Profile
Newbie
 
Join Date: Jul 2002
Posts: 11
httpd problem

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

__________________
Eisa

Reply With Quote
Sponsored Links
  #2  
Old 11-30-2003, 02:05 AM
Burhan Burhan is offline
View Beta Profile
Community Guide
 
Join Date: Jul 2003
Location: Kuwait
Posts: 5,100
Welcome to WHT

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

__________________
In order to understand recursion, one must first understand recursion.
If you feel like it, you can read my blog
Signal > Noise

Reply With Quote
  #3  
Old 11-30-2003, 02:15 AM
eBoundary eBoundary is offline
View Beta Profile
Web Hosting Master
 
Join Date: May 2003
Location: Philadelphia
Posts: 969
Do you have a "NameVirtualHost IP_Address:80" directive defined?

__________________
http://www.eBoundary.com - Let us help you expand your eBoundaries!
Fast, Secure and reliable FreeBSD shared, reseller and dedicated hosting.
FREE Peace of mind with every account!

Reply With Quote
Sponsored Links
  #4  
Old 11-30-2003, 02:28 AM
Jakiao Jakiao is offline
View Beta Profile
Community Guide
 
Join Date: Jun 2003
Location: Janesville, Wi
Posts: 1,480
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.

Reply With Quote
  #5  
Old 11-30-2003, 08:27 PM
Q8man Q8man is offline
View Beta Profile
Newbie
 
Join Date: Jul 2002
Posts: 11
thanks all

We figured it out..

__________________
Eisa

Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement: