httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ouyang Lei" <>
Subject [users@httpd] [Digest Authentication Fail] Apache Http Server V2.2
Date Mon, 20 Mar 2006 08:34:07 GMT
I try to configure "digest authentication" function with both Apache Http Server 2.2(and 2.0.55),
all failed. Could anybody have such experience and let me know the reason.
Step 1. Download and install Apache HTTP Server 2.2 version
Step 2. Compile, by input  "/usr/local/apache/bin/apxs -i -a -c mod_auth_digest.c"
Step 3. Then update httpd.conf as following
LoadModule auth_digest_module modules/
<Directory "/usr/local/apache/htdocs/secd">
   AllowOverride All
Step 4. Make a new directory named as /usr/local/apache/htdocs/secd, 
create .htaccess as belows:
AuthType Digest
AuthName "Digest Test"
AuthUserFile /usr/local/apache/passwd/digest_passwords
Require valid-user
Step 5. Create digest_passwords file by "./htdigest /usr/local/apache/passwd/digest_passwords
/usr/local/apache/htdocs/secd 123"
Last, I use IE6.0/Firefox1.5.0.1 to access " http://my_http_server/secd", then it popup a
dialog to let me input username and password. But the problem is here, even I carefully input
the correct username and password, it continue to popup the dialog, until three times fail.
The error_log shows:[Tue Mar 14 03:54:33 2006] [error] [client] Digest: user `123'
in realm `/usr/local/apache/passwd/digest_passwords' not found: /secd/
Does anybody know what's wrong I am?
Thanks in advance!

View raw message