XAMPP禁止目录浏览的方法

修改/opt/lampp/etc/httpd.conf

#Options Indexes FollowSymLinks ExecCGI Includes
Options FollowSymLinks ExecCGI Includes

/opt/lampp/lampp restart
搞定!