Created
January 23, 2017 21:01
-
-
Save lyquix-owner/3bdbe1fce7007712f552997a4b502ce6 to your computer and use it in GitHub Desktop.
Password protect a directory. Create your .htpasswd file using http://www.htaccesstools.com/htpasswd-generator/
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
# Password Protect Directory # | |
AuthType Basic | |
AuthUserFile /srv/www/example.com/.htpasswd | |
AuthName "Enter username and password" | |
require valid-user |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment