Created
October 24, 2014 11:28
-
-
Save pauldonnelly/7a4f74af25aec570f764 to your computer and use it in GitHub Desktop.
Create Password Protected Directory
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
Go to or Create Directory (mkdir DIRECTORY) | |
1. htpasswd -c .htpasswd USERNAME | |
2. Enter Password twice | |
3. Type pwd to get current path + Copy | |
4. Create or Open .htaccess file - nano .htaccess | |
5. Insert: | |
AuthUserFile path/in/point/3/.htpasswd | |
AuthType Basic | |
AuthName "Design Zoo Protect" | |
<Limit GET POST> | |
require valid-user | |
</Limit> | |
6.Go to directory and test. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment