配了apache的虚拟机以后发现了一个apache虚拟机故障,故障现象是再启动的时候出现下面的错误提示
[warn] _default_ VirtualHost overlap on port 80, the first has precedence
apache虚拟机故障解决办法:
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot D:/workspace/mmcy
ServerName www.kls.com
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot D:/php
ServerName www.myphp.com
</VirtualHost>
关键就是红色这行,加了这行以后这个apache虚拟机故障就解决了。
【编辑推荐】