Hi.<br><br>I am having trouble with a location  regular expression.<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">location ~* ^/(library|conf|appg) {<br>
  return 403;<br>}<br></blockquote><br>It is my understanding the following regular expression should match any uri starting with library, conf or appg. However, this is not the case.<br><br>For instance.<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
<a href="http://domain.com/appg/">http://domain.com/appg/</a><br></blockquote><br>will match fine where as <br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
<a href="http://domain.com/appg/.file">http://domain.com/appg/.file</a><br></blockquote><br>wont match (causing the file to be downloaded)<br><br>Am I doing something inherently wrong or is this a bug in Nginx?<br><br>-Mathew<br>