Skip to content

Instantly share code, notes, and snippets.

@lyquix-owner
Created January 23, 2017 21:01
Show Gist options
  • Save lyquix-owner/3bdbe1fce7007712f552997a4b502ce6 to your computer and use it in GitHub Desktop.
Save lyquix-owner/3bdbe1fce7007712f552997a4b502ce6 to your computer and use it in GitHub Desktop.
Password protect a directory. Create your .htpasswd file using http://www.htaccesstools.com/htpasswd-generator/
# Password Protect Directory #
AuthType Basic
AuthUserFile /srv/www/example.com/.htpasswd
AuthName "Enter username and password"
require valid-user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment