通过.htaccess文件
可以在根目录新建或修改 .htaccess 文件中添加
就可以禁止Apache显示目录索引。
禁止Apache显示文件列表
原文:http://www.cnblogs.com/rf813/p/3934607.html