Hi,
Smrchy wrote:
> 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/_
location /foo {
...
}
location ^~ /foo/_ {
return 403;
}
should do the trick (and should be the most efficient I believe).
Marcus.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx