Welcome! Log In Create A New Profile

Advanced

Re: Access to subfolder

Edho Arief
July 14, 2012 11:08AM
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
Subject Author Posted

Access to subfolder

lukasz138 July 14, 2012 10:59AM

Re: Access to subfolder

Edho Arief July 14, 2012 11:08AM

Re: Access to subfolder

lukasz138 July 14, 2012 12:57PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 162
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready