Created
June 9, 2013 13:56
-
-
Save sfelde/5743649 to your computer and use it in GitHub Desktop.
nginx authmod
This file contains hidden or 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
printf "John:$(openssl passwd -crypt V3Ry)\n" >> .htpasswd # this example uses crypt encryption | |
location / { | |
auth_basic "Restricted"; | |
auth_basic_user_file htpasswd; | |
} | |
url: http://wiki.nginx.org/HttpAuthBasicModule |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment