Nginx rewrite: last & break

Ryan Chan ryanchan404 at
Fri Oct 21 03:14:07 UTC 2011

On Fri, Oct 21, 2011 at 12:54 AM, Nginx User <nginx at> wrote:
> Still quite confusing because the "last" portion goes on to say "after
> which searches for corresponding URI and location". As the "break"
> part does not say anything, it implies that "after which DOES NOT
> search for corresponding URI OR location". I.E. It implies what
> agentzh wrote.
> Perhaps needs some clarification about it being appropriate at server
> level (If I understand you --- totally confused lol).


Perhaps need some examples as well.

It is quit dangerous because sometimes we think it just worked and it
is ok, but in fact we are wrong


I spent a whole day to debug this issue..

More information about the nginx mailing list