<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Oh. the closing }<div class=""><br class=""></div><div class="">It’s been a long day     <span style="font-family: monospace; font-size: medium; white-space: pre;" class=""><:-I</span><br class=""><div class=""><br class="Apple-interchange-newline">
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On 4 Dec 2017, at 18:57, Ian Hobson <<a href="mailto:hobson42@gmail.com" class="">hobson42@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi Sophie,<br class=""><br class="">On 04/12/2017 16:49, Sophie Loewenthal wrote:<br class=""><blockquote type="cite" class="">Hi,<br class="">When I put this location block for case insensitive matching into the vhost produced an error.<br class="">nginx: [emerg] location "/" is outside location ".(jpg|jpeg|png|gif|ico|css|js)$" in /etc/nginx/sites-enabled/example.conf:13<br class="">My vhost has this:<br class="">server {<br class="">…<br class="">         location ~* .(jpg|jpeg|png|gif|ico|css|js)$ {<br class="">         expires 65d;<br class=""></blockquote>You need to close the first location here, before opening the second one.<br class=""><blockquote type="cite" class="">         location  / {<br class="">         allow  all;<br class="">         limit_req   zone=app burst=5;<br class="">         limit_rate 64k;<br class="">         }<br class="">…<br class="">}<br class="">Did I misread the <a href="http://nginx.org/en/docs/http/ngx_http_core_module.html#location" class="">http://nginx.org/en/docs/http/ngx_http_core_module.html#location</a> doxs?<br class=""></blockquote><br class="">Quite possibly - matching is rather complex.<br class=""><br class="">I have been caught by the order of matching which is NOT the order of declaration. I need to check it every time I create a configuration.<br class=""><br class="">Regards<br class=""><br class="">Ian<br class="">_______________________________________________<br class="">nginx mailing list<br class=""><a href="mailto:nginx@nginx.org" class="">nginx@nginx.org</a><br class="">http://mailman.nginx.org/mailman/listinfo/nginx</div></div></blockquote></div><br class=""></div></body></html>