The location behaviour in 0.7 - bug or feature?

Roxis roxis at list.ru
Fri Jul 11 01:45:58 MSD 2008


On Thursday 10 July 2008, Roxis wrote:
> It's 0.7 branch feature  )
> i try to explain:
> if request has exact match with non regex location and location has no
> prefixes "=" and "~^" than search stops and regex locations aren't checked.
>
> in 0.7 request "/" will match "location /" or "location = /"
> but not "location ~ /$"

if none of "location /" and "location = /" exists
than request "/" will match  "location ~ /$"





More information about the nginx mailing list