Apache 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> ServerAdmin [email protected] 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错误。加上同上面的配置节就不会出现这个错误了。
相关推荐
Kafka 2020-09-18
Wepe0 2020-10-30
杜倩 2020-10-29
windle 2020-10-29
minerd 2020-10-28
mengzuchao 2020-10-22
Junzizhiai 2020-10-10
bxqybxqy 2020-09-30
风之沙城 2020-09-24
kingszelda 2020-09-22
大唐帝国前营 2020-08-18
yixu0 2020-08-17
TangCuYu 2020-08-15
xiaoboliu00 2020-08-15
songshijiazuaa 2020-08-15
xclxcl 2020-08-03
zmzmmf 2020-08-03
newfarhui 2020-08-03
likesyour 2020-08-01