Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #.htaccess and .htpasswd in the same directory
- # HTACCESS FILE .htaccess
- #Protect single file
- <Files test.pdf>
- AuthName "Dialog prompt"
- AuthType Basic
- AuthUserFile /var/www/vhosts/mysite.com/httpdocs/directory/.htpasswd #PLESK style
- # AuthUserFile /home/siteaccount/public_html/directory/.htpasswd #CPANEL style
- Require valid-user
- </Files>
- # HTPASSWD FILE .htpasswd
- username:$apr1$xAwjSNG7$IjfJppVo5zM/8x5SiN6PS1
- # password generators
- # http://www.htaccesstools.com/htpasswd-generator/
- # https://www.web2generators.com/apache-tools/htpasswd-generator
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement