rewrite rule failing with unicode urls on nginx with pcre 8.3

Valentin V. Bartenev ne at vbart.ru
Wed Mar 21 11:30:26 UTC 2012


On Wednesday 21 March 2012 14:56:49 yoavaner wrote:
[...]
> > > Is my nginx rewrite rule wrong? Is there a way to make this work?
> > 
> > Avoid using rewrites.
> 
> Or avoid using nginx, but that won't be an ideal solution obviously.
> Hope that this gets fixed some time...
> 

Try this:

  location ~ (*UTF8)^/imgthumb/(.*)$ {
      fastcgi_pass ... or whatever you use
      fastcgi_param QUERY_STRING  $1;
      ...
  }

 wbr, Valentin V. Bartenev



More information about the nginx mailing list