<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">As the <a href="http://nginx.org/en/docs/http/ngx_http_core_module.html#location" target="_blank">location docs</a> specifies, the solution you provided should work.<br>


<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Ensure that:<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">1°) You are working with the right binary<br>


</div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">2°) Configuration syntax is correct (nginx -t) and reload was successful (no message in that direction in the error logs), thus effectively reloading the configuration<br>


</div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">3°) Requests starting with C and returning errors are matching the regex being used<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">


4°) The precedence of location syntax does not make another location block capturing the request (since requests are matched by one and only one location block every time), thus having the requjest served incorrectly (and returning 404 since content could not be found in the serving location block)<br>


</div><div class="gmail_extra"><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font>
</div></div>