文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Apache下禁止目录浏览 没有首页的时候不显示列表

Apache下禁止目录浏览 没有首页的时候不显示列表

时间:2007-09-04  来源:sztzy

vi /etc/apache/httpd.conf进行编辑httpd.conf文件。
找到Options Indexes FollowSymLinks在Indexes前面加上"-"符号!
如果加"+"代表允许目录浏览,"-"代表禁止目录浏览。
找到<Directory "/var/www/html/">换成<Directory "/home/httpd">
然后在找到 Options Indexes FollowSymLinks换成Options -Indexes FollowSymLinks
这样的话就属于整个Apache禁止目录浏览了

#
<Directory "/home/httpd">

#
# 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.0/mod/core.html#options
# for more information.
#
       Options -Indexes FollowSymLinks
这个是配置好的禁止整个Apache浏览

相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载