Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTTP Basic Auth Not Working!

Status
Not open for further replies.

pheadxdll

IS-IT--Management
Jul 11, 2005
2
US
My server version is: Apache/2.0.53

My problem is that apache won't accept my password in my htpasswd file. I set up the password file normally using the htpasswd command. This is how I password protected the directory:

<directory "/var/ AuthType Basic
AuthName "Restricted Files"
AuthUserFile /home/alexdebian/passwords
Require user pheadxdll
</directory>

I tried serveral different cryption methods for the password file. MD5, CYRPT, plain, etc.. but apache keeps saying my password doesn't work. Please help!

Thanks!
 
Here's my first guess: does apache have permission to read the file /home/alexdebian/passwords? Probably not because it's in your home directory.
 
Thanks it works now! :D

First I thought that since I created the htpasswd file under root I wouldn't have to worrry about premissions. I checked out the log file and I saw the server getting premission denied on the log file.

Thanks smash + NullTerminator
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top