View Full Version : DirectoryIndex set priority .html .php
Brenton
7th February 2007, 12:46
Hi
Not sure how to do this on my ISPConfig server.
I want index.html to be loaded first. I have a index.html (a holding page) and index.php (the Joomla CMS) and while I'm working on the site I want web users to see the index.html and only the client to see index.php, by explicitly typing it in as part of the URL.
I can do it on my local internal dev server, but not on my public ISPconfig server.
Please help.
Brenton
falko
8th February 2007, 21:28
Please go to the Options tab of that web site in ISPConfig. There you have a textarea with index files. Just place index.html before index.php there (but that should be the default setting).
Brenton
9th February 2007, 10:28
Hi Falko
I've had a look there and the order of the list is:
index.html
index.htm
index.php
index.php5
etc.
But the .php is still loading before the .html.
the site is http://www.sabcoha.org/ and the index.html can be seen if you type http://www.sabcoha.org/index.html
It's a strange one that has me confused.
Regards
Brenton
till
9th February 2007, 12:45
Have a look at the oder of the directory index directive in your apache2.conf file too.
Brenton
9th February 2007, 12:56
Hi till
Thanks for your reply.
I've checked that too.
The /etc/apache2/apache2.conf file reads
DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.pl index.xhtml
I'm at a loss with this.
Regards
Brenton
till
9th February 2007, 13:01
Maybe you have more then one apache server installed. Please check with:
netstat -tap
if really a apache2 and not a apache1 is listening on port 81. Have you tried to restart your whole server to kill processes that might run with an old configuration?
Brenton
9th February 2007, 13:06
Hi till and Falko
I've just decided to have a look at the .htaccess file and found that it read:
DirectoryIndex index.php
Sorry for wasting your time, I should have checked this first.
Regards
Brenton
blocker
1st July 2008, 14:54
is there a way to fix the directory index priority for all the sites at once? for example i want to have index.php as highest prority
falko
2nd July 2008, 13:13
No, this is only possible on a per-site basis.
blocker
2nd July 2008, 14:50
No, this is only possible on a per-site basis.
what about:
update isp_isp_web set optionen_directory_index="index.htm
\nindex.html\nindex.php........................"
falko
3rd July 2008, 18:00
Try
update isp_isp_web set optionen_directory_index="index.htm
\nindex.html\nindex.php........................", status="u";
Then run
touch /home/admispconfig/ispconfig/.run to inform the backend.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.