Thanks a lot Maxim and Igor for the replies.
Is there a more compact way to write several directories, into one line?
Right now I have many directories not allowed:
[code]location /dir/(alpha|gamma/beta|theta|epsilon/delta/tmp|omega)/ {
allow 127.0.0.1;
deny all;
}[/code]
This is just an example, I have about 20 dirs that needs to be protected.
Do I have to write each one of them individually in order to preserve efficiency?
I could create an additional .conf file and include it into configuration, for sanity reasons.
I just need to know if is best to have the locations separate.
Thanks.