18 messages in ru.sysoev.nginxRe: Possible rewrite regular expressi...
FromSent OnAttachments
Peter HoangJun 23, 2008 2:33 am 
RoxisJun 23, 2008 2:44 am 
Peter HoangJun 23, 2008 6:01 am 
Peter HoangJun 23, 2008 7:43 am 
Igor SysoevJun 23, 2008 7:55 am 
RoxisJun 23, 2008 7:56 am 
Peter HoangJun 23, 2008 8:01 am 
Peter HoangJun 24, 2008 8:47 am 
Igor SysoevJun 24, 2008 8:54 am 
Peter HoangJun 24, 2008 9:03 am 
Peter HoangJun 24, 2008 9:43 am 
Igor SysoevJun 24, 2008 11:01 am 
Igor SysoevJun 24, 2008 11:02 am 
Peter HoangJun 24, 2008 6:09 pm 
Peter HoangJun 24, 2008 10:01 pm 
Peter HoangJun 25, 2008 1:12 am 
Peter HoangJun 25, 2008 11:56 am 
Michal MachJul 23, 2009 4:13 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: Possible rewrite regular expression bug?Actions...
From:Roxis (roxi@public.gmane.org)
Date:Jun 23, 2008 2:44:11 am
List:ru.sysoev.nginx

On Monday 23 June 2008, Peter Hoang wrote:

Hi all,

I'm trying to migrate our server from Lighttpd. Everything has been going smoothly until I have this problem with regular expression. I suspect this is a bug with NGINX regular expression. Consider the following RE:

rewrite ^(.*)&__Q=([^\-]+)-([^/]*)$ /j?$2=$3 last;

This RE matches urls like http://localhost/testing&__Q=q-test but not http://localhost/t?testing&__Q=q-test. It looks like this RE only matches urls which don't contain '?' character before '__Q' part.

Has anyone run into this problem before?

nginx ignores (like apache) query_string in rewrite rules