I'm using the PHPThumb script to resize image in a little slider/carousel on my blog, www.muylinux.com. I've completed the migration from Cherokee (we had problems with this webserver) to Nginx, but although almost everything is running fine, the carousel does not show the thumbnail generated by PHPThumb, although the image is in fact on the directory it links to.
For example, this is one of the images that should be shown currently:
www.muylinux.com/wp-content/themes/massivenews/scripts/phpThumb/phpThumb.php?src=/wp-content/uploads/2010/11/Unix.jpg&w=186&h=156&zc=T&q=95
And as you can see, the image is there:
www.muylinux.com/wp-content/uploads/2010/11/Unix.jpg
But somehow it doesn't show on the homepage's carousel.
I'm pretty sure it's a matter of some rewrite rule, but I can't see how to solve this.
I've seen that the RewriteRule in Apache should be
RewriteRule ^(.*)$ index.php?thumb=$1 [L,QSA]
I'm not sure the "translation" to an nginx rule could work, but I guess there is a good chance for that to work.
Could someone try to give me the equivalent rewrite rule for Nginx? I've tried this:
rewrite ^/([^?]*)(?:\?(.*))? index.php?thumb=$1$2;
I'm a beginner on this and it has not worked.