Nginx rewrite: last & break

agentzh agentzh at
Fri Oct 21 04:19:40 UTC 2011

On Fri, Oct 21, 2011 at 12:38 AM, Maxim Dounin <mdounin at> wrote:
> Processing of rewrite directives at server level may be stopped
> via break, but the location lookup will follow anyway (as there is
> no location at this stage where request may be processed).
> Note original documentation doesn't say anything about "breakes
> location lookup cycle ...".  It's looks like it was added by
> Agentzh here:

Yes, I forgot to take into account server-level rewrites. And sorry
about that. But what I said is correct for location-level rewrites,

We definitely need more clarification here. And in fact, location jump
actually happens in post-rewrite phase handler for location-wise
rewrites! LOL


More information about the nginx mailing list