wampserver 的Apache启动错误提示:The requested URL / was not found on this server.

  1. 打开localhost显示以下错误
  2. 原因:之前我配置了虚拟主机,所以服务器是从虚拟环境访问的,localhost也就访问不到
  3. 解决方法:打开httpd.conf配置文件,将
    Include conf/extra/httpd-vhosts.conf
    改为
    #Include conf/extra/httpd-vhosts.conf
    (下次配置虚拟主机的时候要重新打开这个选项)

原文地址:http://www.wanysys.cc/coding/php/800.html

posted @ 2017-08-24 07:16  yolo_bean  阅读(1451)  评论(0编辑  收藏  举报