Apache NameVirtualHost *:80 has no VirtualHosts问题解决办法
2014-08-16 09:38
806 查看
当启动apache的时候,如果事件管理器出现“Apache NameVirtualHost *:80 has no VirtualHosts”错误时,大部分是因为修改了apache的httpd.conf配置文件,将extra/vhosts.conf文件引入到httpd.conf中了。
复制代码 代码如下: # Virtual hostsInclude conf/extra/httpd-vhosts.conf
httpd-vhosts.conf文件中有一句配置语句为
NameVirtualHost *:80
如果httpd-vhosts.conf中没有存在类似:
复制代码 代码如下:
<VirtualHost *:80>
ServerAdmin webmaster@jb51.net
DocumentRoot "D:/WAPM/www"
ServerName www.jb51.net
ServerAlias www.jb51.net
ErrorLog "logs/www.jb51.net-error.log"
CustomLog "logs/www.jb51.net-access.log" common
</VirtualHost>
配置节,就会在事件管理器中出现Apache NameVirtualHost *:80 has no VirtualHosts错误。加上同上面的配置节就不会出现这个错误了。
您可能感兴趣的文章:
相关文章推荐
- Ubuntu 配置 apache 虚拟主机以后出现 [warn] NameVirtualHost *:80 has no VirtualHosts
- apache2 [warn] NameVirtualHost *:80 has no VirtualHosts的解决方法
- apache2 [warn] NameVirtualHost *:80 has no VirtualHosts的解决方法
- [warn] NameVirtualHost *:80 has no VirtualHosts
- 更改apatch端口为80, [warn] NameVirtualHost 10.254.1.65:80 has no VirtualHosts
- 警告NameVirtualHost *:80 has no VirtualHosts的原因
- apache benchmark(ab)对Nodejs服压测POST请求时出现: apr_poll: The timeout specified has expired (70007) 问题的解决办法
- node.js开发指南中出现的问题 has no method 'router'解决办法
- Apache2.4.6添加虚拟主机提示:NameVirtualHost has no effect and will be removed in the next release /usr/local/apache/conf/extra/httpd-vhosts.conf
- 解决[warn] _default_ VirtualHost overlap on port 80, the first has precedence问题
- [warn] _default_ VirtualHost overlap on port 80, the first has precedence解决办法
- 解决:配置虚拟主机,重启apache,[warn] _default_ VirtualHost overlap on port 80, the first has precedence
- 解决[warn] _default_ VirtualHost overlap on port 80, the first has precedence问题
- 解决 [warn]_default_ VirtualHost overlap on port 80, the first has precedence 问题
- Apache配置 80端口冲突问题的解决办法
- 解决[warn] _default_ VirtualHost overlap on port 80, the first has precedence问题
- 解决:配置虚拟主机,重启apache,[warn] _default_ VirtualHost overlap on port 80, the first has precedence
- 解决[warn] _default_ VirtualHost overlap on port 80, the first has precedence问题
- Apache配置多域名 AH00548: NameVirtualHost has no effect and will be removed in the next release
- There is no Action mapped for namespace / and action name 问题的解决办法