rewrite or internal redirection cycle

Roxis roxis at list.ru
Sun Jul 29 13:53:46 MSD 2007


On Sunday 29 July 2007, Igor Sysoev wrote:
> On Sun, Jul 29, 2007 at 11:45:21AM +0200, Roxis wrote:
> > 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
>
> Does your request matche any regex ?

first one





More information about the nginx mailing list