当前位置:   article > 正文

[xxxxxx/docs/dummy-host.example.com] does not exist_host does not exist

host does not exist

关于Apache 启动[xxxxxx/docs/dummy-host.example.com] does not exist

1.用管理员运行Dos 启动服务

用Dos 启动服务会报相关错误,方便定位错误。

			httpd -k start 启动服务
			httpd -k stop/httpd -k shutdown 关闭服务
  • 1
  • 2

[xxxxxx/docs/dummy-host.example.com] does not exist

出现这个错误的原因是 在extra/httpd-vhosts.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>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

解决方法是将模板删除或者注释掉,如果没有用到 httpd-vhosts.conf文件可以在httpd.conf中注销引用
在这里插入图片描述

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/321018
推荐阅读
相关标签
  

闽ICP备14008679号