URL rewriting: last versus break

Igor Sysoev is at rambler-co.ru
Fri Jul 4 00:29:54 MSD 2008


On Thu, Jul 03, 2008 at 10:22:43PM +0200, Thomas wrote:

> 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".

... and then stop right here (in this location) and serve the request
by the location's handler (static/proxy/fastcgi/etc)

> "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"

Yes.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list