Skip to content

Instantly share code, notes, and snippets.

@neotohin-snippet
Created January 21, 2013 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save neotohin-snippet/4584967 to your computer and use it in GitHub Desktop.
Save neotohin-snippet/4584967 to your computer and use it in GitHub Desktop.
htpasswd
**INLCUDE htpasswd**
To generate .htpasswd:
htpasswd -c ./.htpasswd admin
Add this in .htaccess:
AuthUserFile /home/test/public_html/.htpasswd
AuthGroupFile /dev/null
AuthName "Development Branch"
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment