Last active
December 11, 2015 10:18
-
-
Save elvisciotti/4585713 to your computer and use it in GitHub Desktop.
Instructions to create htaccess protected area with apache
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
# create an .htaccess file in the directory to protect | |
AuthUserFile /full/path/to/.htpasswd | |
AuthType Basic | |
AuthName "My Secret Folder" | |
Require valid-user | |
#create the password with this command | |
htpasswd -c /full/path/to/.htpasswd fred | |
# Now go to http://yourserver/protecteddir/ and insert username:fred, password (the one you inserted after the last command) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment