printf "zhangsan:$(openssl passwd -crypt 123456)\n" >> htpasswd
auth_basic "Restricted"; auth_basic_user_file htpasswd;
printf "zhangsan:$(openssl passwd -crypt 123456)\n" >> htpasswd
auth_basic "Restricted"; auth_basic_user_file htpasswd;
转载于:https://www.cnblogs.com/feral/p/6694620.html