
Apache NameVirtualHost *:80 has no VirtualHosts
pache NameVirtualHost *:80 has no VirtualHosts
当启动apache的时候,如果事件管理器出现“Apache NameVirtualHost *:80 has no VirtualHosts”错误时,大部分是因为修改了apache的httpd.conf配置文件,将extra/vhosts.conf文件引入到httpd.conf中了。# Virtual hosts
Include conf/extra/httpd-vhosts.conf
httpd-vhosts.conf文件中有一句配置语句为
NameVirtualHost *:80
如果httpd-vhosts.conf中没有存在类似
<VirtualHost *:80>
DocumentRoot "D:/www/baike"
ServerName www.liangdianbaike.cn
ServerAlias www.liangdianbaike.cn
</VirtualHost>
配置节,就会在事件管理器中出现Apache NameVirtualHost *:80 has no VirtualHosts错误。加上同上面的配置节就不会出现这个错误了。
============ 欢迎各位老板打赏~ ===========

