Plesk For Windows 在界面上提供了修改单个站点的首页的功能
Plesk For Linux 界面上不提供这个功能,要登录服务器手工修改。
/var/www/vhosts/test-php.com/conf/httpd.include
找到ServerAdmin一行,在下边加入一行新的:
DirectoryIndex filename.ext index.html index.htm index.php index.cgi index.pl index.shtml
其中,filename.ext是优先级最高的文件名,其余按照从左到右的,优先级左侧高,右侧底。
最后,保存退出,并且重新启动apache
/etc/init.d/httpd restart
这个修改只对单个站点生效。
要想该全局的,请编辑/etc/httpd/conf/httpd.conf中的DirectoryIndex设置
那个位置的是服务器全局的设置
