修改 httpd.conf

1
sudo vi /etc/httpd/conf/httpd.conf

找到 Options Indexes FollowSymLinks修改为

1
Options -Indexes FollowSymLinks