Advertisement
Guest User

Untitled

a guest
Mar 7th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. If you're like me, and use Nginx instead of Apache, you could eventually face this problem: Create an htpasswd file (for htaccess "authentication").
  2.  
  3. To create your file, without installing Apache, just run:
  4.  
  5. $ printf "USER:$(openssl passwd -crypt PASSWORD)\n" >> .htpasswd
  6.  
  7.  
  8. Replace USER and PASSWORD for your user and password :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement