location / {
auth_basic "closed site";##Context:httpserverlocationlimit_except
auth_basic_user_file conf/htpasswd;##Context:httpserverlocationlimit_except
}
# printf "howhy:$(openssl passwd -crypt 123456)\n" >>conf/htpasswd
# cat conf/htpasswd
howhy:xyJkVhXGAZ8tM
systemctl restart nginx
04-25 08:42