English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have a folder in my host where I want to have people to access it by password, I have made a tow file by name of .htaccess and .htpasswd the htaccess is looking like this:
-------------------------------------
AuthUserFile /home/omerniah/public_html/ktc/.htpasswd

AuthName "Members Only Area"

AuthType Basic

Require valid-user

-------------------------------------

and htpasswd is like this:
---------------------------------
demo:bY9GmIlmPNj5M
-----------------------------

Note: username is demo and password is also demo.
The password is encrypted with a software, and when I try to connect to it with the password I provide it, it says that the password and user name are not correct, can anyone tell me how to use unencrypted password? and also how to solve this problem? I really need help.

2007-04-28 22:07:50 · 1 answers · asked by Omer 1 in Computers & Internet Programming & Design

1 answers

Check out this easy to use tutorial. I suspect you are trying to use an non-existant user or have the .htpasswd file in the wrong folder.

http://www.reallylinux.com/docs/htaccess.shtml

Your htaccess file HAS to specify the USERNAME

AuthName "Login to the Private Area"
AuthType Basic
AuthUserFile /var/www/html/Private/.htpasswd
Require user demo

2007-04-29 01:13:56 · answer #1 · answered by Tracy L 7 · 0 0

fedest.com, questions and answers