Skip to content

Instantly share code, notes, and snippets.

@syammohanmp
Last active February 16, 2018 09:47
Show Gist options
  • Save syammohanmp/3b3fbeef6a7514324049665da8dd5401 to your computer and use it in GitHub Desktop.
Save syammohanmp/3b3fbeef6a7514324049665da8dd5401 to your computer and use it in GitHub Desktop.
How to add HTTP Password to a domain
# Password protect site
AuthType Basic
AuthName "Restricted Access"
AuthUserFile /path/.htpasswd
Require user admin
admin:$apr1$1HIxQAG9$XLaGANTH47yeaBy.KAZLN/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment