rewrite or internal redirection cycle

Roxis roxis at list.ru
Sun Jul 29 13:45:21 MSD 2007


On Sunday 29 July 2007, Igor Sysoev wrote:
> > rewrite  ^(/download/.*)/media/(.*)\..*$  $1/mp3/$2.mp3  last;
> > rewrite  ^(/download/.*)/audio/(.*)\..*$  $1/mp3/$2.ra   last;
> > return   403;
>
> The "last" stops code executing. If you omit "last", you will get 403.

i'm getting 403 on server level + last or break, and location + last
only location + break works for me






More information about the nginx mailing list