操作系统:CentOS 6.5Apache默认主页为index.html,如果要修改为index.php或其它,需要修改httpd.conf文件用vim或其它编辑器打开httpd.conf 在上图中的DirectoryIndex index.html后增加index.php即如下图所示: 重启...

操作系统:CentOS 6.5
Apache默认主页为index.html,如果要修改为index.php或其它,需要修改httpd.conf文件
用vim或其它编辑器打开httpd.conf
在上图中的DirectoryIndex index.html后增加index.php
即如下图所示:
重启Apache,即可。
原文:http://www.cnblogs.com/kinglau/p/3952201.html
沃梦达教程
本文标题为:Apache配置默认首页


基础教程推荐
猜你喜欢
- centos 7 安装及配置zabbix agent 2023-09-24
- IIS 6 的 PHP 最佳配置方法 2022-09-01
- Apache服务器配置攻略3 2022-09-01
- linux之conda环境安装全过程 2023-07-11
- 实战Nginx_取代Apache的高性能Web服务器 2023-09-29
- 服务器添加git钩子的步骤 2022-12-12
- linux下安装apache与php;Apache+PHP+MySQL配置攻略 2023-08-07
- Apache Hudi数据布局黑科技降低一半查询时间 2022-10-06
- apache和nginx结合使用 2023-09-10
- nginx.conf(centos7 1.14)主配置文件修改 2023-09-23