Restrict/Deny access to all paths starting with _

Smrchy smrchy at
Fri Jan 22 13:10:45 MSK 2010

this is probably a noob question but i'm wondering what would be the best
way to

allow access to a directory e.g.:

location /foo {

this will allow access to


But now i want to deny access to everything starting with /foo/_


so for example


those should not be accessible.
What is the most efficient way to do this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list