httpd start error (namevirtualhost errors)

wowway1

Member
Jul 15, 2004
18
0
151
It's been quite a long morning for me already :(

I tried to update apache using the script, it errored out and would not restart httpd, so I did a rebuild using the last option on the menu. I've gotten all the sites on the server that have a dedicated IP up and running, but the ones using a shared IP are pointing to a default cpanel placeholder. When starting httpd, I got these errors. Can someone please tell me either how to correct these errors, or to completely rebuild httpd.conf? Thanks

:
service httpd start
[Mon Feb 14 07:45:59 2005] [warn] VirtualHost 64.5.44.93:80 overlaps with Virtua
lHost 64.5.44.93:80, the first has precedence, perhaps you need a NameVirtualHos
t directive
[Mon Feb 14 07:45:59 2005] [warn] VirtualHost 64.5.44.93:80 overlaps with Virtua
lHost 64.5.44.93:80, the first has precedence, perhaps you need a NameVirtualHos
t directive
[Mon Feb 14 07:45:59 2005] [warn] VirtualHost 64.5.44.93:80 overlaps with Virtua
lHost 64.5.44.93:80, the first has precedence, perhaps you need a NameVirtualHos
t directive
[Mon Feb 14 07:45:59 2005] [warn] VirtualHost 64.5.44.93:80 overlaps with Virtua
lHost 64.5.44.93:80, the first has precedence, perhaps you need a NameVirtualHos
t directive
[Mon Feb 14 07:45:59 2005] [warn] VirtualHost 64.5.44.93:80 overlaps with Virtua
lHost 64.5.44.93:80, the first has precedence, perhaps you need a NameVirtualHos
t directive
[Mon Feb 14 07:45:59 2005] [warn] VirtualHost 64.5.44.93:80 overlaps with Virtua
lHost 64.5.44.93:80, the first has precedence, perhaps you need a NameVirtualHos
t directive
[Mon Feb 14 07:45:59 2005] [warn] VirtualHost 64.5.44.93:80 overlaps with Virtua
lHost 64.5.44.93:80, the first has precedence, perhaps you need a NameVirtualHos
t directive
[Mon Feb 14 07:45:59 2005] [warn] VirtualHost 64.5.44.93:80 overlaps with Virtua
lHost 64.5.44.93:80, the first has precedence, perhaps you need a NameVirtualHos
t directive
[Mon Feb 14 07:45:59 2005] [warn] VirtualHost 64.5.44.93:80 overlaps with Virtua
lHost 64.5.44.93:80, the first has precedence, perhaps you need a NameVirtualHos
t directive
[Mon Feb 14 07:45:59 2005] [warn] VirtualHost 64.5.36.97:80 overlaps with Virtua
lHost 64.5.36.97:80, the first has precedence, perhaps you need a NameVirtualHos
t directive
[Mon Feb 14 07:45:59 2005] [warn] VirtualHost 64.5.44.93:80 overlaps with Virtua
lHost 64.5.44.93:80, the first has precedence, perhaps you need a NameVirtualHos
t directive
[Mon Feb 14 07:45:59 2005] [warn] VirtualHost 64.5.44.93:80 overlaps with Virtua
lHost 64.5.44.93:80, the first has precedence, perhaps you need a NameVirtualHos
t directive
[Mon Feb 14 07:45:59 2005] [warn] VirtualHost 64.5.44.93:80 overlaps with Virtua
lHost 64.5.44.93:80, the first has precedence, perhaps you need a NameVirtualHos
t directive
[Mon Feb 14 07:45:59 2005] [warn] VirtualHost 64.5.44.93:80 overlaps with Virtua
lHost 64.5.44.93:80, the first has precedence, perhaps you need a NameVirtualHos
t directive
[Mon Feb 14 07:45:59 2005] [warn] VirtualHost 64.5.36.119:80 overlaps with Virtu
alHost 64.5.36.119:80, the first has precedence, perhaps you need a NameVirtualH
ost directive
[Mon Feb 14 07:45:59 2005] [warn] VirtualHost 64.5.36.125:80 overlaps with Virtu
alHost 64.5.36.125:80, the first has precedence, perhaps you need a NameVirtualH
ost directive
[Mon Feb 14 07:45:59 2005] [warn] VirtualHost 64.5.44.93:80 overlaps with Virtua
lHost 64.5.44.93:80, the first has precedence, perhaps you need a NameVirtualHos
t directive
[Mon Feb 14 07:45:59 2005] [warn] VirtualHost 64.5.36.122:80 overlaps with Virtu
alHost 64.5.36.122:80, the first has precedence, perhaps you need a NameVirtualH
ost directive
[Mon Feb 14 07:45:59 2005] [warn] VirtualHost 64.5.36.122:80 overlaps with Virtu
alHost 64.5.36.122:80, the first has precedence, perhaps you need a NameVirtualH
ost directive
[Mon Feb 14 07:45:59 2005] [warn] VirtualHost 64.5.36.122:80 overlaps with Virtu
alHost 64.5.36.122:80, the first has precedence, perhaps you need a NameVirtualH
ost directive
[Mon Feb 14 07:45:59 2005] [warn] VirtualHost 64.5.36.125:80 overlaps with Virtu
alHost 64.5.36.125:80, the first has precedence, perhaps you need a NameVirtualH
ost directive
[Mon Feb 14 07:45:59 2005] [warn] VirtualHost 64.5.36.96:80 overlaps with Virtua
lHost 64.5.36.96:80, the first has precedence, perhaps you need a NameVirtualHos
t directive
[Mon Feb 14 07:45:59 2005] [warn] VirtualHost 64.5.36.96:80 overlaps with Virtua
lHost 64.5.36.96:80, the first has precedence, perhaps you need a NameVirtualHos
t directive
[Mon Feb 14 07:45:59 2005] [warn] VirtualHost 64.5.44.93:80 overlaps with Virtua
lHost 64.5.44.93:80, the first has precedence, perhaps you need a NameVirtualHos
t directive
/etc/init.d/httpd start: httpd started
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
You need to edit your /etc/httpd/conf/httpd.conf file and scroll down to just before the first <VirtualHost> container. Then for each IP address mentioned add the following once at that point:

NameVirtualHost 11.22.33.44

Where 11.22.33.44 is the IP address. Then restart apache and it should come up cleanly.