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)
-   -   index precedence change (http://www.howtoforge.com/forums/showthread.php?t=60712)

abdi 27th February 2013 10:08

index precedence change
 
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

till 27th February 2013 10:21

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

abdi 27th February 2013 10:42

Thanks Till,

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

Joseph

till 27th February 2013 11:03

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

abdi 27th February 2013 13:35

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

till 27th February 2013 13:58

> 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

abdi 27th February 2013 14:01

Thanks alot!


All times are GMT +2. The time now is 02:58.

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