解决方案 »

  1.   

    1.打开服务检查apache是否为启动状态。
    2.打开httpd.conf检查DocumentRoot指定目录下是否有启动文件(index.html、index.php这种)。
    3.一些老式浏览器访问时,别忘了加http://
      

  2.   

    还有看一些httpd.conf里是否有
    <Directory />
        AllowOverride none
        Require all denied
    </Directory>有的话改成
    #Require all denied
      

  3.   

    apche为启动状态、
    http://localhost/也不行
    DocumentRoot指定目录下有启动文件(index.html、index.php、index.htm这种)
      

  4.   

    没有错误提示,只是显示无法打开网页
    你的apache有启动么。。看看当前占用80端口的程序是不是apache  (tasklist|findstr pid )
      

  5.   

    windows系统?看下右下解的apache图标,是不是绿色的启动状态。
      

  6.   


    免安装版的apache2.4
    我的httpd.conf文件下的配置如下
    1、ServerRoot "e:/AppServ/Apache24"
    2、Listen 80
    3、ServerName localhost:80
    4、DocumentRoot "e:/AppServ/Apache24/htdocs"
    <Directory "e:/AppServ/Apache24/htdocs">
    5、<IfModule dir_module>
        DirectoryIndex index.html index.php index.htm
          </IfModule>
    6、ScriptAlias /cgi-bin/ "e:/AppServ/Apache24/cgi-bin/"
    7、<Directory "e:/AppServ/Apache24/cgi-bin">
        AllowOverride None
        Options None
        Require all granted
    </Directory>