Disable PHP in specific directories

Rob Schultz rschultz7 at gmail.com
Thu Jun 10 20:44:17 MSD 2010

On Jun 10, 2010, at 6:25 PM, Boris Dolgov wrote:

> And put it before your location for handling php files. This will
> match all php files in uploads directory and it's subdirs and show a
> error message.

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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20100610/ff6d83b4/attachment.html>

More information about the nginx mailing list