Question:

Help with .htpasswd authentication /apache on windows xp ?

by  |  earlier

0 LIKES UnLike

hi...i am having a problem trying to protect a folder with an .htaccess file and an .htpasswd ...

now the same folder has the both files , this is the .htaccess :

AuthUserFile /c/wamp/www/php/.htpasswd

AuthGroupFile /dev/null

AuthName "My Private Directory"

AuthType Basic

<Limit GET POST>

require valid-user

</Limit>

this is the .htpasswd :

username1:123

username2:342

now when i call that folder from the browser the password window pops up..but an internal server error will be encountered if i entered a username and a password and pressed ok...so please if you have a good explaining on how to fix this problem, i think its something with the configuration but dont know how to fix it ...thanks alot.

 Tags:

   Report

1 ANSWERS


  1. The internal server error is probably coming from the protected path, not from the authorization, which is already (or should be) complete by the time it occurs.  Are you serving the output of a script.  Does that script generate a proper HTTP header?  (On a UNIX/Linux system, I&#039;d ask if it had compatible file permissions, but on Windows, that concept is a lot more primitive.)

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.