rewrite or internal redirection cycle
Igor Sysoev
is at rambler-co.ru
Sun Jul 29 14:58:43 MSD 2007
On Sun, Jul 29, 2007 at 12:49:36PM +0200, Roxis wrote:
> On Sunday 29 July 2007, Igor Sysoev wrote:
> > This is because you have no location that matches request and
> > request against server level rewrite rules: it does not match regex and
> > goes to "return 403".
>
> ok, i understand this:
> location / {}
> rewrite ^(/download/.*)/media/(.*)\..*$ $1/mp3/$2.mp3 last;
> return 403;
>
> but this:
> location / {}
> rewrite ^(/download/.*)/media/(.*)\..*$ $1/mp3/$2.mp3 break;
> return 403;
The server rules is stored in server null location.
The server rules run at server rewrite phase, after "break" execution
stops and leaves in server null location. Then these rules run again
at usual rewrite phase.
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list