<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Mon, Mar 30, 2015 at 10:18 PM, Francis Daly <span dir="ltr"><<a href="mailto:francis@daoine.org" target="_blank">francis@daoine.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Mar 30, 2015 at 08:26:13PM +0300, Peter Volkov wrote:<br>
<br>
Hi there,<br>
<span><br>
> We experience problem: if inside location we use geoip variable try_files<br>
> is not working and only root location is looked up for files.<br>
<br>
</span>That is working as expected for "if" inside "location". It's unrelated<br>
to geoip.<br>
<br>
<a href="http://wiki.nginx.org/IfIsEvil" target="_blank">http://wiki.nginx.org/IfIsEvil</a><br>
<br>
Third item:<br>
<br>
# try_files wont work due to if<br>
<br>
location /if-try-files {<br>
try_files /file @fallback;<br>
<br>
set $true 1;<br>
<br>
if ($true) {<br>
# nothing<br>
}<br>
}<br>
<br>
You'll want to redesign whatever you are doing not to use "if" inside<br>
"location" for anything other than "return" or effective equivalents.<br>
</blockquote><div><br></div><div>Hell, true! Thank you, Francis!<br><br>--<br></div><div>Peter.<br></div></div></div></div>