Require a password for everything except one folder?

nrahl nginx-forum at
Thu Nov 6 14:51:12 UTC 2014

> location /Public { auth_basic off; }

This prevents the password prompt from appearing on /Public, but results in
an immediate 403 Forbidden error on that location.

I've also tried:

location /Public { auth_basic off; allow all; }

But adding "allow all" causes the password prompt to appear on that location

Posted at Nginx Forum:,254625,254636#msg-254636

More information about the nginx mailing list