有关NameVirtualHost指令的Apache2警告

时间:2012-11-09 14:50:04

标签: apache2 ubuntu-10.04

有人可以帮助我理解为什么在重新启动我的apache2网络服务器时收到以下错误:

[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

错误总是出现两次。什么是NameVirtualHost指令?

感谢。

1 个答案:

答案 0 :(得分:28)

请看this example

您可能需要将此行添加到Apache HTTP Server配置中:

NameVirtualHost 172.30.30.12:443