Require a password for everything except one folder?

Francis Daly francis at daoine.org
Thu Nov 6 18:47:24 UTC 2014


On Thu, Nov 06, 2014 at 09:51:12AM -0500, nrahl wrote:

Hi there,

> 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.

  location ^~ /public {
   auth_basic off;
   allow all;
  }

seems to work for me.

Are you sure that the test url that you are requesting matches this
location?

There may be more useful information in the debug log regarding what is
going wrong for you.

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list