2011-11-26 183 views
1

htdigest需要以下參數:什麼是htdigest領域?

Usage: htdigest [-c] passwordfile realm username 

是什麼境界?我應該使用什麼值來設置htdigest?

+0

這Q是不是編程在所有,應移到serverfault或超級用戶 – OnTheFly

+0

領域必須是某種東西,你不能在沒有指定它使用 – hendry

回答

0

通常的境界是一樣的,在你的.htaccess authname的,因爲它會在提示符下顯示的登錄名和密碼

即:

<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

0

當使用htdigest創建密碼時,'realm'需要與Apache配置中的'AuthName'指令相匹配。

例如,如果你的消化配置包含此:

AuthName abc1234xyz

那麼htdigest命令來創建用戶看起來就像這樣:

htdigest /path/to/digestfile abc1234xyz username