如题,能在浏览器里面打开localhost,但是通过点击localhost下面文件夹却打不开,测试证明是直接读取到当前那个文件夹的index页面,但是如果没有这个主页文件,则直接当前显示当前文件夹找不到 

解决方案 »

  1.   

    没有 default 当然直接访问文件夹 找不到文件了啊
      

  2.   

    project 里有什么?
      

  3.   

    得有一些入口文件啊,一般是index.php   index.html    default.html
      

  4.   

    修改一下apache配置文件,将documentroot 指向你这个项目目录就可以了
      

  5.   

    not found是说没找到index.php,index.htm,default.htm这样的文件并不是文件夹没找到
      

  6.   

    没有设置目录的默认文件
    DirectoryIndex index.html index.php 你创建一个index.php 在那里,默认访问文件夹就会访问。例如http://localhost/abc/ 
    在abc里用有 index.php
    那么访问http://localhost/abc/ 就等于访问 http://localhost/abc/index.php