Greetings all.
First of all, know that I am quite a newbie, and also that my mothertongue is French so please excuse my mistakes.
I am trying to protect a directory with the .htaccess and .htpasswd files.
Here is a copy of my .htaccess file template :
AuthUserFile /usr/local/etc/httpd/htdocs/site/dir/.htpasswd
AuthGroupFile /dev/null
AuthName MyName
AuthType Basic
<limit GET>
require valid-user
</Limit>
I put that one in my "/dir" directory, and there I also create an .htpasswd file with the "htpasswd" linux command :
htpasswd -c Username
It then prompts me for a password, I confirm it and it is stored correctly. (I can open the file and verify that).
HERE IS MY PROBLEM : I cannot pass the security check when I try to access my "/dir" directory via a browser (from the server itself or from outside). I tried case sensitive, case insensitive, everything.
I tried the htpasswd -? command, to see what I could do, and they talk about a few encryption protocols :
-m : MD5
-d : CRYPT
-s : SHA
-d : no crypting (plain text).
I tried them all, no one seems to be recognized.
I am working on an Apache-AdvancedExtranetServer/1.3.19
(according to the 401 error message I get in my Browser windows).
I wonder what I can do. Please help if you can ! 🙂