#1  
Old 10th January 2007, 16:28
gral gral is offline
Member
 
Join Date: Jan 2007
Location: Argentina
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to gral
Unhappy Apache vhost problem!

Hi everyone, im having troubles with the virtualhost, when i restart the apache i received:

Stopping httpd: [ OK ]
Starting httpd: [Wed Jan 10 18:08:03 2007] [warn] VirtualHost xxx.xxx.xxx.xxx:80 overlaps with VirtualHost xxxx.xxx.xxxx.xxx:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Wed Jan 10 18:08:03 2007] [warn] VirtualHost xxx.xxx.xx.xx.:80 overlaps with VirtualHost 209.85.106.202:80, the first has precedence, perhaps you need a NameVirtualHost directive
[ OK ]

The problem is when a try to enter via Web to any the virtualhost allways i see the the apache Delfault Page!!

my /etc/httpd/conf/httpd.conf is:

<VirtualHost xxx.xxx.xxx.xx:80>
Servername example.maindomain.net
DocumentRoot /var/www/html
</VirtualHost>

<VirtualHost xxx.xxx.xx.xx:80>
ServerAlias www.xxxx.domain1.com
ServerAdmin guillermo@xxxxxx.com
DocumentRoot /home/user1/public_html
ServerName xxxx.domain1.com

ErrorLog /home/user1/logs/error_log
</VirtualHost>

<VirtualHost xxx.xxx.xxx.xxx.:80>
ServerAlias www.xxxx.domain2.com
ServerAdmin guillermo@xxxxxx.com
DocumentRoot /home/user2/public_html
ServerName xxxxx.domain2.com

ErrorLog /home/user2/logs/error_log
</VirtualHost>

the xxx.xxx.xxx. is a static IP and this apache is running into a VPS with a CentOS template but i think this doesnt change anything...

Well.. any suggestion will be very appreciatted!!

and sorry for my english!

cheers!!!
gRaL
Reply With Quote
Sponsored Links
  #2  
Old 10th January 2007, 16:30
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

Have you defined
Code:
NameVirtualHost xxx.xxx.xxx.xxx
in your httpd.conf?
Reply With Quote
  #3  
Old 10th January 2007, 17:24
gral gral is offline
Member
 
Join Date: Jan 2007
Location: Argentina
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to gral
Talking you rock

Everything working great now!!

This forum rock!

well.. i really aprecciatte your help!!!

Thanks again!
Reply With Quote
  #4  
Old 11th February 2007, 00:26
gral gral is offline
Member
 
Join Date: Jan 2007
Location: Argentina
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to gral
Exclamation

Hi everyone;


I returned to have the same problem, in all my vhost i see the Apache Default page, the httpd.conf is equal the like the httpd.conf above., and with the NameVirtualHos defined ,

The only diference is the hostname DNSzone is hosted in other host than the other vhosts, but i thinks this is not the problem!.

Any suggestion around ??

Regards!
gRaL
Reply With Quote
  #5  
Old 11th February 2007, 14:44
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

Do you use one of the IP addresses in NameVirtualHost that you see in the output of
Code:
ifconfig
?
Also, are the DNS records of your domains ok? You can check with
Code:
dig domain.com
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
mysql apache charset problem foxphiles Server Operation 2 7th November 2006 16:41
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 00:45
Problem with the apache (I can't start ist) M.Behrens Installation/Configuration 11 31st March 2006 10:48


All times are GMT +2. The time now is 04:24.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.