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服务。

猜你喜欢

转载自www.cnblogs.com/gavinguo/p/9586183.html
今日推荐