Skip to content

Instantly share code, notes, and snippets.

@sfelde
Created June 9, 2013 13:56
Show Gist options
  • Save sfelde/5743649 to your computer and use it in GitHub Desktop.
Save sfelde/5743649 to your computer and use it in GitHub Desktop.
nginx authmod
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