<div dir="ltr">On Mon, Mar 30, 2015 at 8:45 PM, itpp2012 <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Peter Volkov Wrote:<br>
[...]<br>
root /tmp/test/;<br>
"/tmp/test/test/1.ts" -> 404<br>
<span class=""><br>
/tmp/test has follofing files:<br>
/tmp/test/dir2/test/1.ts - file<br>
/tmp/test/dir1/test - directory<br>
<br>
</span><span class="">looks up /tmp/test/dir1/test/1.ts or if it not exist<br>
/tmp/test/dir2/test/1.ts file.<br>
</span>[...]<br>
<br>
I think you first need to sort out WHERE stuff is (root+uri) as your 404 is<br>
valid against the other paths your have mentioned.<br></blockquote><div><br></div><div>Sorry, I don't understood your answer. Could you explain what you mean, please?<br><br>That was an example configuration that is a fragment from more complex one. We use <i>try_files /dir1$uri /dir2$uri =404;</i> directive to lookup file first in dir1 and if file does not exist in dir1/temp/, then lookup in dir2/temp. so 1.ts could be either in dir1/test/1.ts or in dir2/test/1.ts. I think it's quite valid configuration. The problem is that it does not work when combined with geoip. So two questions are here:<br></div><div>1. Are there any problems with this config<br></div><div>2. Are there any workarounds/fixes for this problem?<br><br>--<br></div><div>Peter.<br></div></div><br></div></div>