Hi,<div><br class="webkit-block-placeholder"></div><div>I was wondering if anyone could clarify what "break;" 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> </div><div>location / {</div><div> if (!-f $request_filename) {</div><div><div> proxy_pass <a href="http://somewhere">http://somewhere</a>;</div><div> break; # does this do anything?</div><div> }</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> if (-f $request_filename) {</div><div>
break; # avoid the proxy_pass?</div><div> }</div><div> 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>