Nginx rewrites - When does one use the break flag (pattern target break)?
- by anonymous-one
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.