Possible rewrite regular expression bug?

Peter Hoang lists at ruby-forum.com
Mon Jun 23 19:01:31 MSD 2008


Just in case someone runs into the same problem, here is how I did it:

     if ($args ~ ^(.*)&__Q=([^\-]+)-([^/]*)$) {
        set $args $1&$2=$3;
      }


Peter Hoang wrote:
> I forgot to ask, how should I do the rewrite in NGINX?
> 
> 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

-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list