Welcome! Log In Create A New Profile

Advanced

Re: rewrite rule failing with unicode urls on nginx with pcre 8.3

March 21, 2012 05:39PM
Valentin V. Bartenev Wrote:
-------------------------------------------------------
> 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
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx


Thanks Valentin. Your suggestion sounds promising. However, I'm sorry, but I'm not that familiar with the nginx configuration rules. How do I point it in the location directive to my php script (which is timthumb.php) ?

I tried something like this, but it doesn't seem to work... I'm getting an empty response unfortunately.


location ~ (*UTF8)^/imgthumb/(.*)$ {
fastcgi_pass unix:/var/spool/phpfpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root/timthumb.php;
fastcgi_param SCRIPT_NAME /timthumb-orig.php;
fastcgi_param QUERY_STRING $1;
}
Subject Author Posted

rewrite rule failing with unicode urls on nginx with pcre 8.3

yoavaner March 20, 2012 12:06PM

Re: rewrite rule failing with unicode urls on nginx with pcre 8.3

Maxim Dounin March 21, 2012 06:42AM

Re: rewrite rule failing with unicode urls on nginx with pcre 8.3

yoavaner March 21, 2012 06:56AM

Re: rewrite rule failing with unicode urls on nginx with pcre 8.3

Valentin V. Bartenev March 21, 2012 07:32AM

Re: rewrite rule failing with unicode urls on nginx with pcre 8.3

yoavaner March 21, 2012 05:39PM

Re: rewrite rule failing with unicode urls on nginx with pcre 8.3

yoavaner March 21, 2012 06:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 48
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready