关闭

禁止Apache列出目录内容

742人阅读 评论(0) 收藏 举报

<Directory "E:/Program Files/Apache Software Foundation/Apache2.2/htdocs">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important. Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    # 就是这一行,只去掉indexes也可
    #Options Indexes FollowSymLinks
   Options FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

</Directory>

建议默认情况下,设置APACHE禁止用户浏览目录内容。


0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:720344次
    • 积分:10831
    • 等级:
    • 排名:第1481名
    • 原创:480篇
    • 转载:10篇
    • 译文:0篇
    • 评论:28条
    文章分类
    最新评论