LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   .htaccess (https://www.linuxquestions.org/questions/linux-software-2/htaccess-31009/)

pk21 09-23-2002 04:28 AM

.htaccess
 
Hi all

I am running apache on my redhat 7.3 machine. I am having trouble with .htaccess. Here is the contents of my file:
AuthType Basic
AuthName "Restricted Directory"
AuthUserFile /var/www/html/private/.passwd
Require valid-user

My password file is at /var/www/html/private/.passwd with a user: test

When i go to the site it asks for a password, but i cant get in. Here's my error log:
[Mon Sep 23 11:19:31 2002] [error] (13)Permission denied: access to /private/ failed for 192.168.0.10, reason: Authentication failure


Does anyone knows what goes wrong???

dorward 09-23-2002 04:55 AM

Did you encrypt your password using htpasswd?

pk21 09-23-2002 05:17 AM

Yes i did. But i tried a plain text password also.
Both didnt work

pk21 09-23-2002 08:23 AM

It's solved!

It was a missing module :D


All times are GMT -5. The time now is 04:40 PM.