Rewrite or internal redirection cycle?

TECK nginx-forum at nginx.us
Thu May 19 17:20:55 MSD 2011


Hi,

I'm having a bit of an issue with the rewrite scheme:

server {
...
	location / {
		try_files		$uri $uri/ @data;
	}

	location @data {
		rewrite ^		/data.php$is_args;
		internal;
	}
...
}

When I access this request:
http://domain.com/information/feedback/?order=desc&sort=date

I get an internal redirection cycle:
*1 rewrite or internal redirection cycle while processing "/data.php?",
client: IP, server: domain.com, request: "GET
/information/feedback/?order=desc&sort=date HTTP/1.1", host:
"domain.com", referrer: "http://domain.com/information/feedback/"

However, if I access this request:
http://domain.com/information/feedback/400028-some-information.html

Everything works properly. What do you recommend to do, in order to
troubleshoot the issue?
My goal is to actually log what goes wrong with the php code, when the
redirection cycle is encountered.

Thanks for your help.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,199260,199260#msg-199260




More information about the nginx mailing list