I have site protected by password:
location / {
auth_basic …
…
}
but I need excluded some folder ex. /a/b/c/ from authentication
it is possible ?
Posted at Nginx Forum:
I have site protected by password:
location / {
auth_basic …
…
}
but I need excluded some folder ex. /a/b/c/ from authentication
it is possible ?
Posted at Nginx Forum:
On Sat, Jul 14, 2012 at 9:59 PM, lukasz138 [email protected] 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 …
…
}
ok, but I want to access to any subfolder behind /a/b/c/, example
/a/b/c/d or /a/b/c/test.html . Any solution ?
Posted at Nginx Forum:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs