我創建了一個.htaccess
文件與此內容:(該網站的文件夾中)htaccess的禁用了Apache/2.4.10(Debian的)目錄瀏覽不起作用
#Disable directory indexes
Options -Indexes
但我還是看到了瀏覽器中的目錄。
而在apache2.conf
我改寫這個:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
我做了什麼錯?
我假設你已經將這些指令添加到你的'.htaccess'(2's')中,而不是你在問題中寫的'.htacces'? – MrWhite