Created
June 12, 2013 02:32
-
-
Save unfulvio/5762438 to your computer and use it in GitHub Desktop.
Protect a website folder (or root) with http password using .htaccess and .htpasswd
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
AuthUserFile /local/path/.htpasswd | |
AuthType Basic | |
AuthName "Insert a message here" | |
Require valid-user |
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
user:password(md5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
replace /local/path/ with the server local path to .htpasswd file
in htpasswd one user (and related password) can be defined per line