How to set the default document using apache2.conf

Discussion in 'Installation/Configuration' started by milivoye, Nov 20, 2012.

  1. milivoye

    milivoye New Member

    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!
     
  2. till

    till Super Moderator

    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
     
  3. milivoye

    milivoye New Member

    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!
     
  4. till

    till Super Moderator

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

    milivoye New Member

    Hallo Till,

    I'm using Ubuntu 12.04.1 LTS, XFCE


    Regards!
     

Share This Page