Restrict/Deny access to all paths starting with _

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


Hi,
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

/foo
/foo/bar
/foo/bar/somefile.txt

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

/foo/_

so for example

/foo/_users
/foo/_secrets/something.htm
etc.

those should not be accessible.
What is the most efficient way to do this?
Thx
Patrick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20100122/19e7ff64/attachment.html>


More information about the nginx mailing list