Just do it with openssl
openssl passwd -apr1
Enter the password twice to get a hash that can be placed in a file with:
username:password_hash
There is one post tagged nginx.
Just do it with openssl
openssl passwd -apr1
Enter the password twice to get a hash that can be placed in a file with:
username:password_hash