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:28:25 am
List:ru.sysoev.nginx

On Sun, Jul 29, 2007 at 10:46:16AM +0200, Remo Laubacher wrote:

Hi all,

I've installed nginx 0.5.29 on a second server which uses the configuration file I wrote for the first nginx server running with 0.5.26. On the new server I'm getting this error:

2007/07/29 10:25:10 [error] 14422#0: *19 rewrite or internal redirection cycle while processing "/cms/files/logo.jpg", client: A.B.C.D, server: localhost, URL: "/cms/files/kk-20-Turm.jpg", host: "www.www.www"

The reason for this is this rewrite statement:

rewrite ^(.*)/files/(.*) /cms/files/$2 last;

I understand that the pattern matches the new location as well, but it worked with 0.5.26 and I was also excepting that when I use the keyword "last" it stays there and does not try to execute the rewrite statement again... What's wrong there?

Where is this rewrite - on server or location level ?

It's strange that you see error on 0.5.29 and do not see on 0.5.26: there were no changes in this area between the versions.