Possible rewrite regular expression bug?
Igor Sysoev
is at rambler-co.ru
Mon Jun 23 18:55:44 MSD 2008
On Mon, Jun 23, 2008 at 04:43:28PM +0200, Peter Hoang wrote:
> I forgot to ask, how should I do the rewrite in NGINX?
Something like this:
server {
if ($args ~ ^(.*)&__Q=([^\-]+)-([^/]*)$ {
set $args $2=$3;
rewrite ^ /j last;
}
location / {
> Cheers,
> Peter
> Peter Hoang wrote:
> > Thanks Roxis.
> >
> > Roxis wrote:
> >> On Monday 23 June 2008, Peter Hoang wrote:
> >>> 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
> >>
> >> nginx ignores (like apache) query_string in rewrite rules
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list