【问题标题】:Apache2 warning about NameVirtualHost directiveApache2 关于 NameVirtualHost 指令的警告
【发布时间】:2012-10-29 21:37:58
【问题描述】:

有人可以帮我理解为什么我在重新启动我的 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 指令?

谢谢。

【问题讨论】:

  • 你定义了两个VirtualHosts 吗?
  • 我该如何检查这个?我应该寻找什么?
  • 如果这是问题所在,则必须有人将VirtualHosts 放在那里。你使用你的网络服务器,你是如何配置它的?你应该在某个时候遇到过VirtualHost

标签: apache2 ubuntu-10.04


【解决方案1】:

this example

您可能需要将此行添加到您的 Apache HTTP 服务器配置中:

NameVirtualHost 172.30.30.12:443

【讨论】:

  • 您可以添加NameVirtualHost *:443 以启用所有IP。
猜你喜欢
  • 2013-03-23
  • 1970-01-01
  • 1970-01-01
  • 2022-09-30
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-12-12
相关资源
最近更新 更多