Centos7修改apache默认页面方法

2024-10-11 22:53:47

1、操作系统是CentOS Linux release 7.2.1511,和Centos6在服务和配置文件路径方面还是有区别的

Centos7修改apache默认页面方法

3、启动apache服务

Centos7修改apache默认页面方法

5、进入到apache的主目录/etc/httpd里面有一个conf.d的目录

Centos7修改apache默认页面方法

7、通过查看welcome.conf这个配置文件,可以发现apache默认页面文件为/usr/share/httpd/noindex/index.html

Centos7修改apache默认页面方法

9、防火墙放行apache的默认端口80,并在浏览器中访问测试,如图所示修改默认页面成功

Centos7修改apache默认页面方法
猜你喜欢