Home >Backend Development >PHP Tutorial >Introduction to how to disable directory access in Apache

Introduction to how to disable directory access in Apache

巴扎黑
巴扎黑Original
2016-11-23 13:22:19903browse

1. Open the apache configuration file httpd.conf

2. Find

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

and just modify Options Indexes to Options None. Note: Depending on the PHP running environment installation package, Options Indexes may also be Options Indexes FollowSymLinks. And change it to Options None


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