Created
January 7, 2016 12:38
-
-
Save vivianspencer/a60eac4079c1d41b82b6 to your computer and use it in GitHub Desktop.
Password Authentication for Nginx
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 'username:' >> /var/www/example.com/.htpasswd" | |
sudo sh -c "openssl passwd -apr1 >> /var/www/example.com/.htpasswd" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment