Home >Backend Development >PHP Tutorial >Introduction to how to disable directory access in Apache
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