<div dir="ltr">чем плохо два локейшена ?<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-03-15 18:01 GMT+05:00 valmon <span dir="ltr"><<a href="mailto:nginx-forum@forum.nginx.org" target="_blank">nginx-forum@forum.nginx.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Нет, чтобы не делать два location<br>
location ~* ^.+\.(xml|ini|bin|sql|log)$ {<br>
deny all;<br>
return 403;<br>
}<br>
location ~* ^/(hosts|core|patches|db|<wbr>others)/ {<br>
deny all;<br>
return 403;<br>
}<br>
<br>
Posted at Nginx Forum: <a href="https://forum.nginx.org/read.php?21,272923,272960#msg-272960" rel="noreferrer" target="_blank">https://forum.nginx.org/read.<wbr>php?21,272923,272960#msg-<wbr>272960</a><br>
<div class="HOEnZb"><div class="h5"><br>
______________________________<wbr>_________________<br>
nginx-ru mailing list<br>
<a href="mailto:nginx-ru@nginx.org">nginx-ru@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-ru" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx-ru</a></div></div></blockquote></div><br></div>