satisfy any;
server {
location / {
proxy_pass http://backend;
}
location /private {
allow 192.168.0.0/24;
deny all
auth_basic "Private zone";
auth_basic_user_file htpasswd;
satisfy any;
proxy_pass http://backend/private;
}
}