nginx url rewriting: difference between break and last

Posted by Peter on Server Fault See other posts from Server Fault or by Peter
Published on 2010-04-12T00:21:54Z Indexed on 2010/04/12 0:23 UTC
Read the original article Hit count: 390

Filed under:
|

I don't understand the difference between break and last (flags of rewrite). The documentation is rather abstruse. I've tried to switch between the two in some of my configs, but I couldn't spot any difference in behavior. Can someone please explain these flags in more detail? Preferably with an example that shows different behavior when flipping one flag to another.

© Server Fault or respective owner

Related posts about nginx

Related posts about url-rewriting