PHP 禁止显示目录索引

WBOY
Release: 2016-06-20 12:50:36
Original
1563 people have browsed it

apache禁止显示目录索引

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

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

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


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

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


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!