<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jun 10, 2010, at 6:25 PM, Boris Dolgov wrote:</div><br><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><br>And put it before your location for handling php files. This will<br>match all php files in uploads directory and it's subdirs and show a<br>error message.</span></blockquote></div><br><div>Just for clarification it doesn't matter logically where he puts the location as long they are in the same server section. NginX uses the most specific match first no the first match found in the file.</div><div><a href="http://wiki.nginx.org/NginxHttpCoreModule#location">http://wiki.nginx.org/NginxHttpCoreModule#location</a>&nbsp;</div><div><br></div></body></html>