Skip to content

Instantly share code, notes, and snippets.

@webmasterninjay
Created July 3, 2017 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webmasterninjay/c98ae3a738c820c2bf9f3b2db29750da to your computer and use it in GitHub Desktop.
Save webmasterninjay/c98ae3a738c820c2bf9f3b2db29750da to your computer and use it in GitHub Desktop.
Simple password protect directory in apache server.
AuthType Basic
AuthName "Password Protected Area"
AuthUserFile /path/to/.htpasswd
Require valid-user
# add user:password to .htpasswd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment