Need help understanding Nginx Rewriting

Hi guys,
Would like to ask what IS the difference between the “last” and “break”
flags for rewriting? It seems to me from the examples in
http://wiki.nginx.org/NginxHttpRewriteModule that we can just use
“break”
for just about every situation.

Sorry if I had to bother everyone with such a simple question, but this
email comes after reading through that page and other examples for like
hours already :slight_smile:

Ray.

On Sun, Aug 23, 2009 at 12:56:13AM +0800, Ray wrote:

Hi guys,
Would like to ask what IS the difference between the “last” and “break”
flags for rewriting? It seems to me from the examples in
http://wiki.nginx.org/NginxHttpRewriteModule that we can just use “break”
for just about every situation.

Sorry if I had to bother everyone with such a simple question, but this
email comes after reading through that page and other examples for like
hours already :slight_smile:

The “last” stops execution and nginx looks a new location for rewritten
URI.
The “break” stops execution and nginx continues processing in the same
location.

I see, thanks a lot Igor!

Ray.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs