Created
July 10, 2018 20:09
-
-
Save vutkin/97c7d2890874433c3a47609b825b9e05 to your computer and use it in GitHub Desktop.
.htpasswd
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
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