Last active
November 20, 2017 18:11
-
-
Save georgebent/1294ec862956eb31a2e73bfc9e6291a1 to your computer and use it in GitHub Desktop.
Auth for pages by htaceess
This file contains hidden or 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
// for passwords add to ht.access | |
AuthType Basic | |
AuthName "Private zone. Only for administrator!" | |
AuthUserFile /home/path/to/site.dev/.htpasswd | |
require valid-user | |
// and run command | |
htpasswd -c /home/path/to/site.dev/.htpasswd admin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment