Advertisement
meetsos

Password Protect Directory with .htaccess & .htpasswd

Jul 21st, 2017 (edited)
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. # HTACCESS FILE .htaccess
  2. AuthUserFile /var/www/vhosts/mysite.com/httpdocs/directory/.htpasswd #PLESK style
  3. # AuthUserFile /home/siteaccount/public_html/directory/.htpasswd #CPANEL style
  4. AuthName "Admin Area"
  5. AuthType Basic
  6. Require valid-user
  7.  
  8. # HTPASSWD FILE .htpasswd
  9. username:$apr1$xAwjSNG7$IjfJppVo5zM/8x5SiN6PS1
  10.  
  11. # password generators
  12. # http://www.htaccesstools.com/htpasswd-generator/
  13. # https://www.web2generators.com/apache-tools/htpasswd-generator
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement