Nginx rewrites - When does one use the break flag (pattern target break)?
Posted
by
anonymous-one
on Server Fault
See other posts from Server Fault
or by anonymous-one
Published on 2012-09-10T21:07:39Z
Indexed on
2012/09/10
21:40 UTC
Read the original article
Hit count: 142
The nginx wiki states:
break - completes processing of current rewrite directives and non-rewrite processing continues within the current location block only.
Is this to say that:
If the rewrite pattern matches, process the rewrite (rewrite to target) but do not process any of the other rules in the location block, and process all other (cache, proxy, etc) directives in the location block?
I am talking about the break flag as per:
PATTERN TARGET FLAG
Not the "break;" directive.
Thanks.
© Server Fault or respective owner