Parsing query_string or args

Igor Sysoev is at rambler-co.ru
Fri Aug 24 00:41:17 MSD 2007


On Thu, Aug 23, 2007 at 09:56:46AM -0500, Fred Palmer wrote:

> I need to be able to write a rewrite rule based on the query_string.  Is
> there an example of parsing it anywhere?  Can someone suggest a method for
> doing that?

        if ($query_string ~ "..(..)..") {
            set       $var  $1;
            rewrite   ...    ...$var...
        }

-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list