NameVirtualHost CentOS 6

When i restart httpd i get the following:

Code:
Starting httpd: [Sat Oct 01 10:46:41 2011] [warn] VirtualHost 192.168.12.250:80 overlaps with VirtualHost 192.168.12.250:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Oct 01 10:46:41 2011] [warn] VirtualHost 192.168.12.250:80 overlaps with VirtualHost 192.168.12.250:80, the first has precedence, perhaps you need a NameVirtualHost directive
 
Could it be a problem with my dns setting?

My domains records all point to my public IP.
 
No, a shared hosting usually point multiple domains to single ip, doesnt look to me as a dns problem but on apache something is wrong, cause point you to the wrong directory while the httpd.conf seems to be correctly redirected for each domain to his own domain home... i dont get what is wrong there.. but im about sure that is apache issue...
 
Hi,

I managed to resolve this problem bij adding:

NameVirtualHost 192.168.12.250:80

To my httpd.conf file.

After that i restarted httpd service, error (or warnings) are gone. Everything works fine.

Hope its solved now.

Thanks for your help!
 
Ok, again now i understand the problem.

Remove that line from httpd.conf and add the 192.168.2.250 ip into directadmin.

Directadmin doesnt know about that ip so he dont tell apache to listen on that aswell.

That should solve your problem definitly

Regards
 
on ip management on admin lever

You shouldnt see the ip in ip list, when you add it it say alraedy exist, once you done the ip is in the list and the problem should be solved

Regards
 
Back
Top