Link to home
Start Free TrialLog in
Avatar of tech1984
tech1984

asked on

Default index extension in Plesk

I need to change the order of default page extension that loads on a domain administered with Plesk 9.2.3.

I am running apache for my web server, is there a setting in plesk to change this or do I need to modify the apache ini file.

Example:
If the root directory has both index.htm and index.php the index.php page loads. I need the default to be index.htm not index.php.


Avatar of hmtwins
hmtwins
Flag of Netherlands image

Plesk is a add on tool. I would try changing the apache order (Make backups before you change anyting)

Open your Apache configuration file httpd.conf

# vi httpd.conf
Find out line that read as follows:

DirectoryIndex
Now set it as per your requirements:

DirectoryIndex index.html index.htm default.htm index.php index.pl
Save and close the file. Restart the Apache webs server:

# /etc/init.d/httpd restart
Avatar of tech1984
tech1984

ASKER

Can this be done with an htaccess file?
ASKER CERTIFIED SOLUTION
Avatar of Denisvt
Denisvt

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial