操作系统: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配置默认首页


基础教程推荐
猜你喜欢
- 为Win2003服务器打造铜墙铁壁的方法步骤 2022-09-01
- 通过StatefulSet部署有状态服务应用实现方式 2022-10-01
- Centos 安装Django2.1 2023-09-24
- Apache CarbonData 1.0.0发布及其新特性介绍 2023-09-11
- P3 利用Vulnhub复现漏洞 - Apache SSI 远程命令执行漏洞 2023-09-10
- Centos7 nginx的安装以及开机自启动的设置 2023-09-22
- RFO SIG之openEuler AWS AMI 制作详解 2022-12-28
- windows环境下apache-apollo服务器搭建 2023-09-10
- Apache Kafka 2.5 稳定版发布,新特性抢先看 2023-09-11
- Docker容器操作方法详解 2022-11-13