Skip to content

Instantly share code, notes, and snippets.

@vutkin
Created July 10, 2018 20:09
Show Gist options
  • Save vutkin/97c7d2890874433c3a47609b825b9e05 to your computer and use it in GitHub Desktop.
Save vutkin/97c7d2890874433c3a47609b825b9e05 to your computer and use it in GitHub Desktop.
.htpasswd
sudo sh -c "echo -n 'sammy:' >> /etc/nginx/.htpasswd"
sudo sh -c "openssl passwd -apr1 >> /etc/nginx/.htpasswd"
https://www.digitalocean.com/community/tutorials/how-to-set-up-password-authentication-with-nginx-on-ubuntu-14-04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment