php设置apache启动后,访问网页错误提示:The requested URL / was not found on this server

因为之前想要配置多站点,在apache配置文件中将httpd.conf文件中“Include conf/extra/httpd-vhosts.conf”的注释取消后,忘记修改回来,在访问域名后,界面返回报错信息:The requested URL / was not found on this server

解决方案:

在apache配置文件httpd.conf文件中,将“Include conf/extra/httpd-vhosts.conf”注释掉(前面加#),重启apache服务。

 

posted @ 2018-09-04 18:18  小敦叔  阅读(16489)  评论(0编辑  收藏  举报