修改apache默认页面方法

2024-10-12 07:10:39

1、先使用yum安装apache服务yum install httpd -y

修改apache默认页面方法

3、通过命令ps -ef|grep httpd 找到apache的进程/usr/sbin/httpd

修改apache默认页面方法

5、欢迎配置页面/etc/httpd/conf.d/welcome.conf对应的目录路径为/usr/share/httpd/noindex

修改apache默认页面方法

7、重置页面内容并测试[root@localhost noindex]# echo "192.168.122.157" > index.html[root@localhost noindex]# curl 127.0.0.1192.168.122.157

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