See <a href="http://wiki.codemongers.com/NginxHttpCoreModule#var_args">http://wiki.codemongers.com/NginxHttpCoreModule#var_args</a> or the original docs <a href="http://sysoev.ru/nginx/docs/http/ngx_http_core_module.html">http://sysoev.ru/nginx/docs/http/ngx_http_core_module.html</a> (not sure if there is an anchor) which often autotranslate fairly readably if something is missing or out of date in the wiki.<br>
<br><div class="gmail_quote">On Tue, Feb 17, 2009 at 11:20 AM, Igor Sysoev <span dir="ltr"><<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Tue, Feb 17, 2009 at 11:59:17AM -0700, Paul Greenwood wrote:<br>
<br>
> I'm sorry I am new to nginx but what does value $args hold and where does<br>
> the value come from?<br>
<br>
</div>$args is the same as $query_string.<br>
<div><div></div><div class="Wj3C7c"><br>
> On Mon, Feb 16, 2009 at 1:50 AM, Igor Sysoev <<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>> wrote:<br>
><br>
> > On Sun, Feb 15, 2009 at 01:52:19PM -0700, Paul Greenwood wrote:<br>
> ><br>
> > > How would you use regx in nginx for this:<br>
> > ><br>
> > > RewriteCond %{QUERY_STRING} ^$ [OR] %{REQUEST_URI} ^/Special:Search<br>
> > > RewriteRule ^/(.*)$ /index.php?title=$1 [L,QSA,NE]<br>
> > ><br>
> > > I'm not sure to how to do this?<br>
> ><br>
> > location / {<br>
> > if ($args = "") {<br>
> > rewrite ^ /index.php?title=$request_uri? last;<br>
> > }<br>
> > }<br>
> ><br>
> > location /Special:Search {<br>
> > rewrite ^ /index.php?title=$request_uri?;<br>
> > }<br>
<br>
<br>
--<br>
Igor Sysoev<br>
<a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
<br>
</div></div></blockquote></div><br>