AH00112: Warning: DocumentRoot [D:/wamp/apache/Apache24/docs/dummy-host.example.com] does not exist
AH00112: Warning: DocumentRoot [D:/wamp/apache/Apache24/docs/dummy-host2.example.com] does not exist
错误原因:配置虚拟主机的vhost.conf中存在模板配置,删除之;
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "${SRVROOT}/docs/dummy-host.example.com"
ServerName dummy-host.example.com
ServerAlias www.dummy-host.example.com
ErrorLog "logs/dummy-host.example.com-error.log"
CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "${SRVROOT}/docs/dummy-host2.example.com"
ServerName dummy-host2.example.com
ErrorLog "logs/dummy-host2.example.com-error.log"
CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>
17:01 2020/1/21