htdigest需要以下参数:
Usage: htdigest [-c] passwordfile realm username这个领域是用来做什么的?我应该使用什么值来设置htdigest?
发布于 2011-12-14 13:06:07
无论如何,realm表示chalenge的验证域。在digest身份验证领域值参与密码散列的情况下,这就是存储密码文件时需要它的原因。
发布于 2013-03-24 23:21:51
通常,领域与.htaccess中的身份验证名相同,因为它将在提示输入登录和密码时显示
即:
<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“提示
发布于 2017-09-13 05:11:12
当使用htdigest创建密码时,'realm‘需要与你的Apache配置中的'AuthName’指令匹配。
例如,如果您的摘要配置包含以下内容:
AuthName abc1234xyz
然后,用于创建用户的htdigest命令将如下所示:
htdigest /path/to/digestfile abc1234xyz username
https://stackoverflow.com/questions/8276221
复制相似问题