1、设置默认页面,编辑apache的 httpd.conf
<IfModule dir_module>
DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>
2、禁止显示目录索引
<Directory "">
Options Indexes FollowSymLinks # 修改为: Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>