• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Domain Index page

T

thesedays

Guest
Hi,

Ive setup a domain in Plesk 8.4 with PHP support on.
Plesk auto sets index.php as default index page.

However, I want index.html as default index page and index.php as 2nd priority.

Can anyone help me out how to do this?


Many thanks.
 
In /etc/httpd/conf/httpd.conf there is a list of these files in one of the config lines. I *assume* the order in which they appear is important.

Try changing it then restarrting apache.

Make a copy of the file before editing it in case something goes wrong.

Note that your changes may get overwritten when you update Plesk to a new version.

Faris.
 
Yeah, been doing that so far in the vhost/conf/httpd.include file.
But it gets overwritten when I change the slightest bit in plesk

f.e: create new domain, update plesk, ...


So everytime I have to change the file manually again.
Very annoying, that's why I was wondering if Plesk is able to change the default index page..
 
If it is SuSE 10.x the DirectoryIndex is overwritten for the PHP5-Module:

# cat /etc/apache2/conf.d/php5.conf
<IfModule mod_php5.c>
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php5
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .php3s
AddType application/x-httpd-php-source .php4s
AddType application/x-httpd-php-source .php5s
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php3
DirectoryIndex index.php4
DirectoryIndex index.php5
DirectoryIndex index.php
</IfModule>
 
Back
Top