Apache2 warning about NameVirtualHost directive
Asked Answered
C

1

22

Can someone help me to understand why I receive the following errors when restarting my apache2 webserver:

[Fri Nov 09 09:46:43 2012] [warn] VirtualHost 172.30.30.12:443 overlaps with VirtualHost 172.30.30.12:443, the first has precedence, perhaps you need a NameVirtualHost directive
[Fri Nov 09 09:46:43 2012] [warn] VirtualHost 172.30.30.12:443 overlaps with VirtualHost 172.30.30.12:443, the first has precedence, perhaps you need a NameVirtualHost directive

The error always appears twice. What is a NameVirtualHost directive?

Thanks.

Cannular answered 9/11, 2012 at 14:50 Comment(3)
Do you have two VirtualHosts defined?Yseulte
How would I check this? What should I look for?Cannular
If this is the issue, someone would have to have put the VirtualHosts there. Do you use your web server, how did you configure it? You should have come across a VirtualHost at some pointYseulte
L
28

Look at this example.

You probably need to add this line to your Apache HTTP Server configuration:

NameVirtualHost 172.30.30.12:443
Lomond answered 9/11, 2012 at 15:6 Comment(1)
You may add NameVirtualHost *:443 to enable for all IPs.Yonina

© 2022 - 2024 — McMap. All rights reserved.