13 messages in ru.sysoev.nginxRe: rewrite or internal redirection c...
FromSent OnAttachments
Remo LaubacherJul 29, 2007 1:45 am 
RoxisJul 29, 2007 1:55 am 
Remo LaubacherJul 29, 2007 2:03 am 
Igor SysoevJul 29, 2007 2:28 am 
Igor SysoevJul 29, 2007 2:29 am 
RoxisJul 29, 2007 2:44 am 
Igor SysoevJul 29, 2007 2:50 am 
RoxisJul 29, 2007 2:53 am 
Igor SysoevJul 29, 2007 3:13 am 
RoxisJul 29, 2007 3:25 am.gz
Igor SysoevJul 29, 2007 3:32 am 
RoxisJul 29, 2007 3:49 am 
Igor SysoevJul 29, 2007 3:58 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: rewrite or internal redirection cycleActions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:Jul 29, 2007 2:29:24 am
List:ru.sysoev.nginx

On Sun, Jul 29, 2007 at 11:03:32AM +0200, Remo Laubacher wrote:

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;

The "last" stops code executing. If you omit "last", you will get 403.