htdigest needs the following parameters:
Usage: htdigest [-c] passwordfile realm username
What is the realm for? What value should I use to setup htdigest?
Anyway, realm denotes authentication domain for challenge-response. In the case of digest
authentication realm value participates in the password hash, that why it is required when storing password files.
See https://www.rfc-editor.org/rfc/rfc2617#section-3.2.1 for details.
Usually the realm is the same that the authname in your .htaccess as it will be displayed at prompt for login and password
i.e:
<Location /prived/>
AuthName "Prived zone"
AuthType Digest
AuthUserFile /var/www/authfile/priveduser
AuthGroupFile /var/www/authfile/privedgroup
AuthDigestDomain /prived/ /protect/
Require group valid-users
</Location>
htdigest -c /var/www/authfile/priveduser "Prived zone" titi
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With