关闭索引有效防止网站文件泄露出去

  1. 打开httpd.conf文件

  2. 找到<Directory "网站路径">

  3. 在Options Indexes FollowSymLinks前加个#,注释掉