View Single Post
  #1  
Old 10th January 2007, 16:28
gral gral is offline
Member
 
Join Date: Jan 2007
Location: Argentina
Posts: 32
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