禁止Apache显示目录的方法
禁止Apache显示目录的方法所有配置均针对conf\httpd.conf文件。 默认情况,如果appache指定的根目录没有下面项配置的“index.php index.htmlindex.htm”文件之一,则appache会显示目录及目录下的所有文件:
DirectoryIndex index.phpindex.html index.htm
禁止apache显示目录的方法是删除“Options Indexes FollowSymLinks”中的“Indexes”项:
OptionsIndexes FollowSymLinks
AllowOverride None
Orderallow,deny
Allow from all
修改后:
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
页:
[1]