我开始学习如何使用.htaccess文件,我尝试这样做
Options -Indexes
据我了解,它阻止了对该文件夹的访问,但是,当我重新启动服务器后,它仍然可以访问父文件夹,目前,我正在使用:
Apache2.4
PHP Version 7.2.4
OS Windows 10 Home
我将此插入了我的httpd.conf文件
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>