Apache配置默认首页时间:2023-03-09 00:15:18 操作系统:CentOS 6.5 Apache默认主页为index.html,如果要修改为index.php或其它,需要修改httpd.conf文件 用vim或其它编辑器打开httpd.conf 在上图中的DirectoryIndex index.html后增加index.php 即如下图所示: 重启Apache,即可。