location for php except

Philipp Kraus philipp.kraus at tu-clausthal.de
Sun Jun 1 19:00:13 UTC 2014

Am 01.06.2014 um 20:16 schrieb Francis Daly <francis at daoine.org>:

> 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 "first-come-first-serv order", so the swap does not create
any effect.

>> So how can I change the locations, that all PHP files, which URL has got the part /gitlab it should be passed to Gitlab and
>> otherwise it should be passed to the fastcgi call e.g.
> If by "has got the part" you mean "starts with exactly the string",
> then pay particular attention to the "^~" modifier,

I have added the ^~ to my locations and it seems to be working



More information about the nginx mailing list