Welcome! Log In Create A New Profile

Advanced

try-files and Gallery3 rewriting

June 08, 2011 05:44PM
Hiho,

I am currently running gallery3 on nginx/php-fpm. Works like a charm so far.
But i'd like to get gallery3 also under the hood of try-files, but didn't
get it running up to now.

The working (and evil) if rewrite code looks like this:

location /gallery3/ {
if (!-e $request_filename) {
rewrite ^/gallery3/index.php/(.+)$
/gallery3/index.php?kohana_uri=$1 last;
rewrite ^/gallery3/(.+)$
/gallery3/index.php?kohana_uri=$1 last;
rewrite ^/gallery3/$ /gallery3/index.php?kohana_uri=/
last;
}

}

Could anybody supply a correct try_files directive and explain how and why
try_files should do the stuff in this case?

Thank you very much!

Andy
--

Andreas Lehr

mail: mail@andreas-lehr.com
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

try-files and Gallery3 rewriting

shakalandy June 08, 2011 05:44PM

Re: try-files and Gallery3 rewriting

António P. P. Almeida June 08, 2011 06:28PM

Re: try-files and Gallery3 rewriting

António P. P. Almeida June 08, 2011 06:38PM

Re: try-files and Gallery3 rewriting

Igor Sysoev June 09, 2011 03:42AM

Re: try-files and Gallery3 rewriting

Igor Sysoev June 09, 2011 04:12AM

Re: try-files and Gallery3 rewriting

Igor Sysoev June 09, 2011 04:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 75
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