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.

DanielAttard
  • 3,467
  • 9
  • 55
  • 104

1 Answers1

28

Look at this example.

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

NameVirtualHost 172.30.30.12:443
030
  • 10,842
  • 12
  • 78
  • 123
Perleone
  • 3,958
  • 1
  • 26
  • 26