Re: location for php except

2014-06-01 Thread Philipp Kraus
Am 01.06.2014 um 20:16 schrieb Francis Daly : > Strictly, it's that this location is the one that best matches the > request. ("first" doesn't really apply.) > > See http://nginx.org/r/location for details. okay, I have try to swap both location, imho I have translate "best location" with "fir

Re: location for php except

2014-06-01 Thread Francis Daly
On Sun, Jun 01, 2014 at 07:37:51PM +0200, Philipp Kraus wrote: Hi there, > I'm using nginx with Gitlab, so in the Gitlab some PHP projects are hosted > and on other directory there exists some PHP scripts. > > For the PHP files I use: > > location ~ \.php$ { > and for my Gitlab I'm using:

location for php except

2014-06-01 Thread Philipp Kraus
Hello, I'm using nginx with Gitlab, so in the Gitlab some PHP projects are hosted and on other directory there exists some PHP scripts. For the PHP files I use: location ~ \.php$ { fastcgi_split_path_info ^(.+?\.php)(/.*)$; if (!-f $document_root$fastcgi_script_name)