方法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
如下图:
![自动加载<a href=http://www.jb200.com/wb/php/ target=_blank class=infotextkey>php文件</a>](/d/file/wb/php/20131228091312.jpg)