allow access on a sublocation

Reinis Rozitis r at roze.lv
Tue Aug 6 14:50:36 UTC 2013


> this configuration does not work as expected :
> server {
>    satisfy any;

If that is all your configuration (no extra location blocks) then just 
include the rules inside location / {}  like:


server {

      location / {
                     satisfy any;
                     auth_basic "DING DING SONG";
                      ...
                    deny all;
     }

     location /allowed/ {
     }

}


p.s. http://nginx.org/en/docs/http/ngx_http_core_module.html#location

rr 



More information about the nginx mailing list