Skip to content

Instantly share code, notes, and snippets.

@elliottmangham
Created December 7, 2020 08:46
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 elliottmangham/04b72049ecf7d5cc992c3aca57159c86 to your computer and use it in GitHub Desktop.
Save elliottmangham/04b72049ecf7d5cc992c3aca57159c86 to your computer and use it in GitHub Desktop.
Apache / Password-protect directory
# ----------------------------------------------------------------------
# Password protect
# ----------------------------------------------------------------------
AuthType Basic
AuthName "Password Protected Area"
AuthUserFile /dir/to/root/.htpasswd
Require valid-user
# Password must be encrypted
username:password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment