plesk for Linux 没有默认首页的优先级别设置

swsoft可能想不到中国人喜欢在一个空间放很多首页,,,index.asp,index.html,传到空间上发现打开网页不是他要的那个首页再打个电话过来说“帮我调一下首页吧”。

===============================
我们的设置方法如下:修改httpd.include文件
/var/www/vhosts/xxx.com/conf/httpd.include
找到ServerAdmin一行,在下边加入一行新的:
DirectoryIndex filename.ext index.html index.htm index.php index.cgi index.pl index.shtml
其中,filename.ext是优先级最高的文件名,其余按照从左到右的,优先级左侧高,右侧底。
最后,保存退出,并且重新启动apache

原文地址:https://www.cnblogs.com/LCX/p/1075132.html