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,184 Times in 3,202 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
1 day 10 hours ago
1 day 19 hours ago
1 day 22 hours ago
1 day 23 hours ago
2 days 58 min ago
2 days 2 hours ago
2 days 4 hours ago
2 days 5 hours ago
2 days 21 hours ago
2 days 22 hours ago