Guest User

Untitled

a guest
May 25th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. # assumes the file /etc/httpd/auth/domain.com.passwd
  2. #
  3.  
  4. sudo /usr/bin/htpasswd domain.com.passwd <user>
  5.  
  6. # and in the .htaccess file
  7.  
  8. AuthType Basic
  9. AuthName "Demo"
  10. AuthUserFile /etc/httpd/auth/domain.com.passwd
  11. Require user <user>
Add Comment
Please, Sign In to add comment