Skip to content

Instantly share code, notes, and snippets.

@georgebent
Last active November 20, 2017 18:11
Show Gist options
  • Save georgebent/1294ec862956eb31a2e73bfc9e6291a1 to your computer and use it in GitHub Desktop.
Save georgebent/1294ec862956eb31a2e73bfc9e6291a1 to your computer and use it in GitHub Desktop.
Auth for pages by htaceess
// 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