3 messages in ru.sysoev.nginxRe: Parsing query_string or args
FromSent OnAttachments
Fred PalmerAug 23, 2007 7:56 am 
Igor SysoevAug 23, 2007 1:40 pm 
Fred PalmerAug 23, 2007 2:20 pm 
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: Parsing query_string or argsActions...
From:Fred Palmer (fred@public.gmane.org)
Date:Aug 23, 2007 2:20:32 pm
List:ru.sysoev.nginx

O.K. I think the problem was I wasn't using the "set" command after the match... I was trying this:

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

Thanks, Fred

On 8/23/07, Igor Sysoev <is-G@public.gmane.org> wrote:

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... }