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...
Subject Author Posted

"Idiomatic" Gallery3 configuration

Stefan Foerster September 01, 2013 07:52AM

Re: "Idiomatic" Gallery3 configuration

Gwyneth Llewelyn February 11, 2014 07:17AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 82
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready