index precedence change

Discussion in 'Installation/Configuration' started by abdi, Feb 27, 2013.

  1. abdi

    abdi New Member

    Hello Till,

    By default (Nginx+Php-FPM) the index precendence is defined as:

    Code:
    server {
            [...]
            index index.html index.htm index.php index.cgi index.pl index.xhtml;
            [...]
    }
    
    I would like to change that order to:

    Code:
    server {
            [...]
            index index.php index.htm index.html index.cgi index.pl index.xhtml;
            [...]
    }
    
    I know I can do it individually but I would like to make a general change such that by default for ALL domain names (current and new) use that setting.

    Do kindly advice me on how that can be achieved.

    Thanks, Joseph
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can change that in the nginx_vhost.conf.master template.
     
  3. abdi

    abdi New Member

    Thanks Till,

    QN: Is this file overwritten during the update process? (Thus I would loose the set changes)

    Joseph
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    You have to put modified config templates in the conf-custom folder to prevent that they get overwritten.
     
  5. abdi

    abdi New Member

    ls -l /usr/local/ispconfig/server/conf-custom/

    Code:
    rwxr-s--- 2 ispconfig ispconfig 4096 Dec  6 08:37 error
    drwxr-s--- 2 ispconfig ispconfig 4096 Dec  6 08:37 index
    drwxr-s--- 2 ispconfig ispconfig 4096 Dec  6 08:37 mail
    
    Do I put it in the root of conf-custom/ or I put it in conf-custom/index
    Also, do I maintain the same exact name ie nginx_vhost.conf.master
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    > Do I put it in the root of conf-custom/ or I put it in conf-custom/index

    From my post above: "You have to put modified config templates in the conf-custom folder ..."

    > Also, do I maintain the same exact name ie nginx_vhost.conf.master

    Yes
     
  7. abdi

    abdi New Member

    Thanks alot!
     

Share This Page