方法1,修改配置文件
例如,修改配置文件D:lampapacheconfhttpd.conf加上DirectoryIndex index.hmtl index.php。
内容:
复制代码 代码示例:
<IfModule !mpm_netware_module>
DirectoryIndex index.hmtl index.php
<IfModule !mpm_winnt_module>
方法2,修改D:lampapacheconfextra httpd-vhosts.conf文件,添加内容:
复制代码 代码示例:
Options +Indexes
DirectoryIndex index.php index.html
如下图:
