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,872
Thanks: 689
Thanked 4,182 Times in 3,201 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
18 hours 36 min ago
21 hours 32 min ago
22 hours 46 min ago
1 day 9 min ago
1 day 1 hour ago
1 day 3 hours ago
1 day 4 hours ago
1 day 20 hours ago
1 day 21 hours ago
2 days 1 hour ago