Francis Daly francis at
Thu Jun 26 07:59:23 UTC 2014

On Thu, Jun 26, 2014 at 01:01:13AM -0400, RandysPants wrote:

> If I add:
> location / {
>     deny all;
> }
> It blocks just fine I just cant figure out how to allow /folder2

  location /folder2 {}

This does assume there are no other location{} blocks; and it does allow
more than just /folder2/ contents.

for the details, and how to allow only /folder2 contents (by using two
separate location{}s).

Francis Daly        francis at

More information about the nginx mailing list