PHP程序员站--PHP编程开发平台
 当前位置:主页 >> PHP高级编程 >> 开发技巧 >> 

防止Apache泄露WEB的秘密

防止Apache泄露WEB的秘密

来源:互联网  作者:未知  发布时间:2008-01-08
Apache还是很好的WEB,但如果设置不当,也会造成WEB秘
Apache还是很好的WEB,但如果设置不当,也会造成WEB秘密被访问者下载,比如图标或软件,只要取消目录访问的索引文件就可以防止。编辑httpd.conf文件,
原文件为:
以下为引用的内容:
<Directory "/opt/www">

 

#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes FollowSymLinks MultiViews


只要把“Indexes ”删除,用户就不可能访问到目录文件了!
Tags: 文件   Apache   web   C   泄露  
最新文章
推荐阅读
月点击排行榜
PHP程序员站 Copyright © 2007-2010,PHPERZ.COM All Rights Reserved 粤ICP备07503606号