Welcome! Log In Create A New Profile

Advanced

Re: OR conditional usage behavior changed in 0.8.x?

December 07, 2010 05:40PM
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.
Subject Author Posted

OR conditional usage behavior changed in 0.8.x?

TECK December 06, 2010 03:45AM

Re: OR conditional usage behavior changed in 0.8.x?

Igor Sysoev December 06, 2010 07:12AM

Re: OR conditional usage behavior changed in 0.8.x?

Maxim Dounin December 06, 2010 07:22AM

Re: OR conditional usage behavior changed in 0.8.x?

TECK December 07, 2010 05:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 65
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready