Possible rewrite regular expression bug?

Peter Hoang lists at ruby-forum.com
Mon Jun 23 13:33:37 MSD 2008


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?

Cheers,
Peter
-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list