nginx rules to deny php/perl execution

nfn nginx-forum at
Sat Nov 20 22:31:00 MSK 2010

Olá António,

that's exactly what I need, since these directories have write
permissions, but which rules should I have?

placing something like this will work, but the user can see/read the php
content and I don't want that

location ~ ^/(cache|static|etc)/  {
      root /var/www;

How do I deny execution/read access to those files



Posted at Nginx Forum:,152089,152102#msg-152102

More information about the nginx mailing list