Apache禁止索引访问方法介绍

Apache禁止目录访问方法介绍

1、打开apache配置文件httpd.conf

2、找到

 

<Directory "f:/web"/>
  Options Indexes
  AllowOverride None
  Order allow,deny
  Allow from all
</Directory>

只需要修改Options Indexes为Options None即可,:根据PHP运行环境安装包的不同,Options Indexes也有可能是Options Indexes FollowSymLinks,一并改为Options None即可