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,887
Thanks: 692
Thanked 4,188 Times in 3,205 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
13 hours 29 min ago
18 hours 28 min ago
19 hours 54 min ago
20 hours 47 min ago
22 hours 31 min ago
1 day 2 hours ago
1 day 3 hours ago
1 day 6 hours ago
1 day 19 hours ago
1 day 20 hours ago