避免發生上圖
就在 /etc/apache2/mods-available 目錄下 修改 userdir.conf
=======================
<IfModule mod_userdir.c>
UserDir public_html
UserDir disabled root
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Require all granted
</Limit>
<LimitExcept GET POST OPTIONS>
Require all denied
</LimitExcept>
</Directory>
</IfModule>
============================
糽色 Indexes 字刪掉
service apache2 restart
沒有留言:
張貼留言