修改httpd.conf里的这两项设置:1、<Directory "C:/Program Files/Apache Group/Apache/htdocs">这里修改缺省的路径(即你敲127.0.0.1后出现的那个路径),我的是在291行,你找找2、在配置PHP环境时要添加这样的东西
<IfModule mod_dir.c>
DirectoryIndex index.htm
DirectoryIndex index.php
DirectoryIndex index.php3
DirectoryIndex index.php4
</IfModule>
以上是你不敲文件名时就按顺序查找以上的文件名,你可以再添加你要的文件名,如:default.php修改完这两项重启APACHE,应该就可以了,我这就这样试成功了。
<IfModule mod_dir.c>
DirectoryIndex index.htm
DirectoryIndex index.php
DirectoryIndex index.php3
DirectoryIndex index.php4
</IfModule>
以上是你不敲文件名时就按顺序查找以上的文件名,你可以再添加你要的文件名,如:default.php修改完这两项重启APACHE,应该就可以了,我这就这样试成功了。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货