找到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
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
Options -Indexes FollowSymLinks
这个是配置好的禁止整个Apache浏览
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END