URL rewriting: last versus break

Thomas iamkenzo at gmail.com
Fri Jul 4 00:22:43 MSD 2008

Okay, so "break", means "if regexp matches the request, then rewrite
the request and then stop right here and serve the request as being a
static file".

"last" means "if regexp matches the request then rewrite the request,
then do not move on to any subsequent rewriting rule, but now try to
match the request with a location in the config file"

Am I right?

More information about the nginx mailing list