nginx密码认证

printf "zhangsan:$(openssl passwd -crypt 123456)
" >> htpasswd

  

auth_basic "Restricted";
auth_basic_user_file htpasswd;

  

原文地址:https://www.cnblogs.com/feral/p/6694620.html