Parse index.php before index.html

  • Hi there,


    as long as there is an index.html in the htdocs directory, it is always loaded before the index.php file. I know that one could change this via vhost def. file. Is there a template where I can change this? I don´t want to "play around" and destroy anything. I know I could delete the index.html file, but this is not the way I wanna go ;)


    Thanks in advance
    Simon

  • Hi,


    I'm littlebit confused now.


    I dont know why do you want two index.* in the same directory, this doesnt make sense.
    Rename one of them a recode the part wo need this file.


    This is the way you must go :)

    Sry for my bad english :)

  • Its the way our developers go, they push their content in the htdocs directory and don´t want to check for the index.html everytime. Thats the only reason why. The manual work should be as low as possible. I´m the same opinion as you are, but they aren´t.

  • Hello ;


    Code
    1. # Default pages
    2. DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm


    is defined in the 00_nameserver.conf file.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Aaaah, I already saw that file, but I was confused by the name and didn´t want to destroy anything. Am I right, that every change on that file will be overwritten on the next update?


    And as there are 4 versions of it...which is the one I have to change?


    /etc/imscp/apache/working/00_nameserver.conf
    /etc/imscp/apache/00_nameserver.conf
    /etc/apache2/sites-enabled/00_nameserver.conf
    /etc/apache2/sites-available/00_nameserver.conf


    Thanks a lot!!


    Best regards
    Simon


    -push