1、进配置文件(位置可能会变,那就可以用 find 给找出来)
vim /etc/httpd/conf/httpd.conf
2、看到DirectoryIndex
在默认的DirectoryIndex index.html
后面加上你想要的默认页面的文件名
保存退出,重启httpd服务
systemctl restart httpd
1、进配置文件(位置可能会变,那就可以用 find 给找出来)
vim /etc/httpd/conf/httpd.conf
2、看到DirectoryIndex
在默认的DirectoryIndex index.html
后面加上你想要的默认页面的文件名
保存退出,重启httpd服务
systemctl restart httpd