Home >Backend Development >PHP Tutorial >PHP 禁止显示目录索引

PHP 禁止显示目录索引

WBOY
WBOYOriginal
2016-06-20 12:50:361592browse

apache禁止显示目录索引

apache显示目录索引很不安全,下面是操作方法。

在httpd.conf文件搜索关键字"Indexes "。

    Options Indexes FollowSymLinks    AllowOverride None    Order allow,deny    Allow from all


出掉Indexes关键字,修改如下:

  Options  FollowSymLinks MultiViews    AllowOverride None        Order allow,deny        Allow from all


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn