Require a password for everything except one folder?

nrahl nginx-forum at nginx.us
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
again.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254625,254636#msg-254636



More information about the nginx mailing list