How to set the default document using apache2.conf
Hallo!
I got ISPConfig3 on my Apache server.
By default it uses index.html as default document for new web-sites, but I'd like to set index.php as the first choice, and to apply that server-wide using apache2.conf
Any clues?
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
Search for the setting "DirectoryIndex" in apache2.conf file and change the order of files listed in that directive so that index.php is before index.html
There was no such line in my original apache2.conf
I already tried to add: DirectoryIndex index.php index.html index.htm, but that haven't changed anything.
It's still displaying index.html instead of index.php
Recent comments
14 hours 54 min ago
19 hours 59 min ago
1 day 23 min ago
1 day 2 hours ago
1 day 16 hours ago
1 day 16 hours ago
1 day 21 hours ago
2 days 4 hours ago
2 days 4 hours ago
2 days 6 hours ago