0
点赞
收藏
分享

微信扫一扫

nginx auth

location / {
auth_basic "closed site";##Context:http
, server
, location
, limit_except

auth_basic_user_file conf/htpasswd;##Context:http
, server
, location
, limit_except

}

# printf "howhy:$(openssl passwd -crypt 123456)\n" >>conf/htpasswd # cat conf/htpasswd howhy:xyJkVhXGAZ8tM systemctl restart nginx

举报

相关推荐

0 条评论