Created
December 1, 2012 16:21
-
-
Save ShenXuGongZi/4183086 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location / { | |
auth_basic "Restricted"; | |
auth_basic_user_file conf/htpasswd; | |
} | |
#auth_basic_user_file 指令为验证域指定了密码文件 | |
#文件格式如下 | |
user:pass | |
user2:pass2:comment | |
user3:pass3 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment