Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2231731
  • 博文数量: 533
  • 博客积分: 8689
  • 博客等级: 中将
  • 技术积分: 7046
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-26 10:00
文章分类

全部博文(533)

文章存档

2024年(2)

2023年(4)

2022年(16)

2014年(90)

2013年(76)

2012年(125)

2011年(184)

2010年(37)

分类: LINUX

2011-09-15 11:12:02



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

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

#


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

阅读(1071) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~