#1  
Old 27th February 2013, 10:08
abdi abdi is offline
Senior Member
 
Join Date: Sep 2012
Posts: 118
Thanks: 0
Thanked 10 Times in 6 Posts
Exclamation 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
Reply With Quote
Sponsored Links
  #2  
Old 27th February 2013, 10:21
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,340
Thanks: 810
Thanked 5,172 Times in 4,055 Posts
Default

You can change that in the nginx_vhost.conf.master template.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 27th February 2013, 10:42
abdi abdi is offline
Senior Member
 
Join Date: Sep 2012
Posts: 118
Thanks: 0
Thanked 10 Times in 6 Posts
Default

Thanks Till,

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

Joseph
Reply With Quote
  #4  
Old 27th February 2013, 11:03
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,340
Thanks: 810
Thanked 5,172 Times in 4,055 Posts
Default

You have to put modified config templates in the conf-custom folder to prevent that they get overwritten.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 27th February 2013, 13:35
abdi abdi is offline
Senior Member
 
Join Date: Sep 2012
Posts: 118
Thanks: 0
Thanked 10 Times in 6 Posts
Default

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
Reply With Quote
  #6  
Old 27th February 2013, 13:58
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,340
Thanks: 810
Thanked 5,172 Times in 4,055 Posts
Default

> 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
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 27th February 2013, 14:01
abdi abdi is offline
Senior Member
 
Join Date: Sep 2012
Posts: 118
Thanks: 0
Thanked 10 Times in 6 Posts
 
Default

Thanks alot!
Reply With Quote
Reply

Bookmarks

Tags
index precendence

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Some problems and questions Typhon Installation/Configuration 22 15th January 2012 14:12
Error 403 abintipl Installation/Configuration 7 31st October 2011 14:02
My Ispconfig UI is not totally loading when i log in wachira General 23 2nd February 2011 20:11
Cannot add Mailboxes after PHP-Update hfr Installation/Configuration 5 7th November 2009 20:09
add web site serr57 Installation/Configuration 18 13th April 2008 11:40


All times are GMT +2. The time now is 13:32.


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