Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
Thank you in advance for your patience and understanding on the matter.
I am trying to find the place where you can choose which preference for the landing page ie index.html or index.htm or index.php I can not find it anywhere in Plesk 10
[root@vz1038 conf.d]# grep -i directoryindex /etc/httpd/conf/httpd.conf
# DirectoryIndex: sets the file that Apache will serve if a directory
DirectoryIndex index.html index.html.var index.shtml index.cfm index.php index.htm
[root@vz1038 conf.d]#
[root@vz1038 conf.d]# grep -i -B 4 directoryindex /etc/httpd/conf.d/php.conf
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php
The php.conf file is read after hence it takes priority (it seems),
Are you an admin of the server / have admin access to Plesk?
You could do one of the following :
1) Add a .htaccess with your preferred DirectoryIndex to the virtual host template
2) Add an event handler on domain creation to insert a vhost.conf and vhost_ssl.conf with the DirectoryIndex values you want
3) Edit the Plesk httpd.include templates (no idea how to do that, don't really run Plesk 10 servers)
4) Add a zzdirectoryindex.conf to /etc/httpd/conf.d/ with your preferred order of DirectoryIndex (the point of the zz is to make sure its processed after both the httpd.conf and the php.conf file).
All of these should work without Plesk getting too far in the way
Now I'm somewhat confused, the default behaviour in Plesk with PHP enabled is for domain.com/index.php to be loaded when you go to domain.com/ . I assumed you wanted to change it to something else.
Are you getting different behaviour?
Also the .htaccess should be fine, and the vhost.conf isn't relevant for what we're doing,
Modifying /etc/httpd/conf/httpd.conf is perfectly safe as long as you don't fiddle with things you shouldn't. Plesk does not modify this file anymore, and will not overwrite any changes you make. I think it used to many years ago, but no longer.
Changing the DirectoryIndex line is perfectly safe and the way to do it.
The order the index files appear in the list is the order that they will be looked up.
Where does one find the vhost.conf file? Via FTP or in the Plesk control panel? I'm having the same issue wherein I can not get a wordpress installation to "trump" the plesk index page despite proper installation via ftp, plesk subscription/database/user creation, etc. Thanks!
My .htaccess file reads:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Note: In Filezilla, I can not change the permissions of the var folder to 777 or anything else to create any new directories or add any files.
Note: In Filezilla, my conf file has a ? next to it and clicking on it I receive "Failed to retrieve directory listing". I can not modify this file in any way.
By default vhost.conf is absent for new domains. If you want to customise something you should create vhost.conf file in directory with your domain (/var/www/vhosts/test.tld/conf/) and run websrvmng (/usr/local/psa/admin/bin/websrvmng).
Line with including of your custom config will be automatically added to httpd config:
Howdy Kriogen, and thanks for trying to answer the question.
I can not modify the /var file or add any pages or directories to it.
Also, I did not run across this issue with 5 identical installations this morning, so I'm wondering, what's different about this one? I haven't had to make all these changes suggested in this forum to delete the plesk index page (yes, I renamed it... no affect) on any other site. Thougths? Frustrated! Thank you