On Sat, Jul 14, 2012 at 9:59 PM, lukasz138 <nginx-forum@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
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx