如何防止apache显示文件列表
2011-09-27 14:10
288 查看
如何防止apache显示文件列表
1.找到apache配置文件httpd.conf
2.设置
打开列目录功能:
<!--/path/to/directory是指你的apache设置的项目根路径,
如D:/Program Files/Apache Software Foundation/Apache2.2/htdocs-->
<Directory /path/to/directory>
Options +Indexes
</Directory>
关闭列目录功能:
<!--在其中找到Options选项,把Indexes去掉或是前面加上"-"号-->
<Directory /path/to/directory>
Options -Indexes
</Directory>
1.找到apache配置文件httpd.conf
2.设置
打开列目录功能:
<!--/path/to/directory是指你的apache设置的项目根路径,
如D:/Program Files/Apache Software Foundation/Apache2.2/htdocs-->
<Directory /path/to/directory>
Options +Indexes
</Directory>
关闭列目录功能:
<!--在其中找到Options选项,把Indexes去掉或是前面加上"-"号-->
<Directory /path/to/directory>
Options -Indexes
</Directory>
相关文章推荐
- 如何防止Apache显示文件列表
- 如何防止Apache显示文件列表
- 如何防止Apache显示文件列表
- 如何防止apache将服务器中的文件列表显示出来
- (转)如何防止Apache显示文件列表
- 如何防止apache将服务器中的文件列表显示出来
- 如何显示 *.so 文件的符号列表
- Apache web server 禁止显示目录文件列表
- 解决Wamp各版本中 Apache 文件列表图标无法显示
- apache显示文件列表
- tomcat如何禁止显示目录和文件列表
- Apache 文件列表图标无法显示
- 禁止Apache显示文件列表
- apache如何设置才能取消将目录中的内容列表显示出来
- apache config httpd.conf file防止目录列表被浏览、敏感目录或文件限制IP访问
- Apache设置禁止访问网站目录(目录列表显示文件)
- 如何设置APACHE让他不允许别人列出文件列表来?
- apache在没有index.html时显示目录文件列表
- 关闭Apache显示文件列表
- tomcat如何禁止显示目录和文件列表