Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: HTTP/1.1" 401 401 |
|
Author |
|
sfreeman
Joined: 03 Dec 2008 Posts: 2
|
Posted: Wed 03 Dec '08 0:32 Post subject: HTTP/1.1" 401 401 |
|
|
hey there guys, I just setup my new apache server today (it's simple, just to view some html books I have from my phone, instead of having to keep them actually on the phone). unfortunately, i'm having a problem now...I wanted to secure it using a username/password, and I thought I followed the directions correctly (http://httpd.apache.org/docs/2.2/howto/auth.html), but I'm getting the above error in my access log when I try to log in when I'm using Digest mode instead of Basic. Here's the htpasswd line I entered:
htpasswd -c "C:\Program Files\Apache Software Foundation\Apache2.2\Password" steve
then I got the two prompts to enter my password, which I did. then in httpd.conf, I have the following:
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/Books">
AuthType Digest
AuthName "Books"
# (Following line optional)
AuthBasicProvider file
AuthUserFile "C:\Program Files\Apache Software Foundation\Apache2.2\Password\passwords"
Require user steve
</Directory>
Now, like I said, "AuthName Basic" works, but I would prefer to use Digest. Any ideas? I've tried it in multiple browsers, and it behaves the same in all three (Firefox 3.x, Chrome, and the evil IE). |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
|
Back to top |
|
sfreeman
Joined: 03 Dec 2008 Posts: 2
|
Posted: Wed 03 Dec '08 18:21 Post subject: |
|
|
Ok, I got it all working, thx for the help. Another issue (which took me at least 30 minutes to figure out), is that:
LoadModule auth_digest_module modules/mod_auth_digest.so
was commented out by default. after I removed the #, everything's working. |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Wed 03 Dec '08 20:12 Post subject: |
|
|
yep .. most modules are "turned off" by default. Only the basic necessities are on by default. |
|
Back to top |
|
|
|
|
|
|