HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   How to set the default document using apache2.conf (http://www.howtoforge.com/forums/showthread.php?t=59656)

milivoye 20th November 2012 19:37

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?

Best regards!

till 21st November 2012 09:28

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

milivoye 21st November 2012 17:37

Hallo Till,

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


Regards!

till 21st November 2012 18:17

This setting can be in one of the include files depending on the linux distribution that you use.

milivoye 21st November 2012 20:06

Hallo Till,

I'm using Ubuntu 12.04.1 LTS, XFCE


Regards!


All times are GMT +2. The time now is 14:43.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.