Created
July 3, 2017 14:22
-
-
Save webmasterninjay/c98ae3a738c820c2bf9f3b2db29750da to your computer and use it in GitHub Desktop.
Simple password protect directory in apache server.
This file contains 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
AuthType Basic | |
AuthName "Password Protected Area" | |
AuthUserFile /path/to/.htpasswd | |
Require valid-user | |
# add user:password to .htpasswd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment