Access to subfolder
Edho Arief
edho at myconan.net
Sat Jul 14 15:06:42 UTC 2012
On Sat, Jul 14, 2012 at 9:59 PM, lukasz138 <nginx-forum at nginx.us> wrote:
> I have site protected by password:
> location / {
> auth_basic ...
> ...
> }
>
> but I need excluded some folder ex. /a/b/c/ from authentication
>
> it is possible ?
>
Yes. Just add another location where you don't want to use
authentication, optionally prefixing it by ^~[1]:
location ^~ /a/b/c/ {
...
}
location / {
auth_basic ...
...
}
[1] http://nginx.org/r/location
More information about the nginx
mailing list