Hi,<div><br class="webkit-block-placeholder"></div><div>I was wondering if anyone could clarify what &quot;break;&quot; does - basically, does it stop all processing, or only rewrite processing? What is its effect on proxy_pass? Here are two simple contrasting examples:
</div><div><br>&nbsp;</div><div>location / {</div><div>&nbsp;&nbsp;if (!-f $request_filename) {</div><div><div>&nbsp;&nbsp; &nbsp;proxy_pass <a href="http://somewhere">http://somewhere</a>;</div><div>&nbsp;&nbsp; &nbsp;break; # does this do anything?</div><div>&nbsp;&nbsp;}</div>
<div>}</div><div><br class="webkit-block-placeholder"></div><div># Is that any different from this?</div><div><br class="webkit-block-placeholder"></div><div>location / {</div><div>&nbsp;&nbsp;if (-f $request_filename) {</div><div>
&nbsp;&nbsp; &nbsp;break; # avoid the proxy_pass?</div><div>&nbsp;&nbsp;}</div><div>&nbsp;&nbsp;proxy_pass <a href="http://somewhere">http://somewhere</a>;</div><div>}</div><div><br class="webkit-block-placeholder"></div><div>Thanks!</div><div><br class="webkit-block-placeholder">
</div><div>JD</div></div>