rewrite or internal redirection cycle

Remo Laubacher remo.laubacher at ortic.com
Sun Jul 29 13:03:32 MSD 2007


good hint thanks,
this time I should have read the documentation or well I should have
read it more detailled.

This page http://wiki.codemongers.com/NginxHttpRewriteModule#rewrite
says that if there is no location block (I don't have one) I have to use
last instead of break.

Why should I use "last" in this example (from the link above)?:

rewrite  ^(/download/.*)/media/(.*)\..*$  $1/mp3/$2.mp3  last;
rewrite  ^(/download/.*)/audio/(.*)\..*$  $1/mp3/$2.ra   last;
return   403;


> try "break"
>
>   






More information about the nginx mailing list