Hiho,<div><br></div><div>I am currently running gallery3 on nginx/php-fpm. Works like a charm so far.</div><div>But i&#39;d like to get gallery3 also under the hood of try-files, but didn&#39;t get it running up to now.</div>
<div><br></div><div>The working (and evil) if rewrite code looks like this:</div><div><div>  </div><div>     location /gallery3/ {</div><div>                if (!-e $request_filename) {</div><div>                     rewrite ^/gallery3/index.php/(.+)$ /gallery3/index.php?kohana_uri=$1 last;</div>
<div>                     rewrite ^/gallery3/(.+)$ /gallery3/index.php?kohana_uri=$1 last;</div><div>                     rewrite ^/gallery3/$ /gallery3/index.php?kohana_uri=/ last;</div><div>                }</div><div><br>
</div><div>        }</div><div><br></div><div>Could anybody supply a correct try_files directive and explain how and why try_files should do the stuff in this case?</div><div><br></div><div>Thank you very much!</div><div>
<br></div>Andy<br>-- <br><pre cols="72">Andreas Lehr<br><br>mail: <a href="mailto:mail@andreas-lehr.com" target="_blank">mail@andreas-lehr.com</a><br><br></pre><br>
</div>