Welcome! Log In Create A New Profile


Re: "Idiomatic" Gallery3 configuration

February 11, 2014 07:17AM
As far as I can tell, this looks good to me, and it's better to use rewrites than "if", which is what (sadly) the Gallery3 wiki still shows.

My current issue is that album thumbnails, which use an URL ending in [i].album.jpg?...[/i] (a dot before the album name, a query with a question mark after .jpg) doesn't seem to be caught by these rules and throws a 403. I wonder why, because [b]rewrite ^/var/(albums|thumbs|resizes)/(.*)$ /file_proxy/$2 last;[/b] should catch it.

Maybe it needs another rewrite rule, e.g.

[b]rewrite ^/var/(albums|thumbs|resizes)/(.*)?(.*)$ /file_proxy/$2?$3 last;[/b]

I haven't tested it out, though. I'm still very shaky with nginx configuration!

Thanks for posting this. I'm glad to see that there are plenty of people using Gallery3 with nginx. It makes a lot of sense, since images can be accessed directly by nginx and served immediately without the need to go through the PHP processor...


I'm just a virtual girl in a virtual world...

"Idiomatic" Gallery3 configuration

Stefan FoersterSeptember 01, 2013 07:52AM

Re: "Idiomatic" Gallery3 configuration

Gwyneth LlewelynFebruary 11, 2014 07:17AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 105
Record Number of Users: 5 on August 04, 2015
Record Number of Guests: 244 on October 02, 2015
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready