Apache2 关于 NameVirtualHost 指令的警告

标签 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 指令?

谢谢。

最佳答案

看看this example .

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

NameVirtualHost 172.30.30.12:443

关于Apache2 关于 NameVirtualHost 指令的警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13310249/

相关文章:

ruby-on-rails-3 - Rails 的 Web 服务器选择

node.js - 使用 child_process 打开的文件太多

python - 如何确定我的 python 脚本是否正在运行?

ruby-on-rails - 警告 : Insecure world writable dir

solr - 我如何解决 Ubuntu 10.04 上多核 Solr 的安装问题?

linux - .htaccess mod_rewrite 用于 web 服务以及隐藏其他文件

apache - 目录名称中带有下划线的 URL 编码?

perl - 为什么我的共享变量在 mod_perl 中的 PerlChildInitHandler 和 PerlResponseHandler 之间被清除?

macos - 如何在 OS X Mavericks 上控制 apache2 Webroot?

linux - ubuntu 中自动启动应用程序