Advertisement
sytchenko

Linux. .htaccess .htpasswd generation and use

Jan 21st, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. Generate .htpasswd file:
  2. htpasswd -c /pathtofile/.htpasswd Username
  3.  
  4. Access throught .htaccess file:
  5. AuthUserFile /pathtofile/.htpasswd
  6. AuthType basic
  7. Require valid-user
  8. AuthName "Username and password required"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement