aphache本地调试打开http://localhost/ 默认打开index.php

如题··这个是怎么设置的?
谢谢了

在apache的配置文件中默认的路径文件路径修改一下就可以,可以找一下配置
DocumentRoot 后面跟你的文件路径,还有<Directory 后面也跟你的文件路至于为什么是index.php而不是.html
可以找一下配置
DirectoryIndex index.php index.html
把index.php和index.html位置调换一下,而且你的根目录下要有index.html文件
温馨提示:答案为网友推荐,仅供参考
相似回答