|
|

|
krazykate
Level 1 User
Occupation:
Offline
|
Joined: Mar 27, 2006
Find all post by krazykate
Total Posts: 1
0.00 posts per day
Total Words: 0
|
Posted: Wed Oct 29, 2008 10:44 am Post subject: help with .htpasswd authentication /apache on windows xp ?
|
|
|
|
|
|
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/.htpasswdAuthGroupFile /dev/nullAuthName "My Private Directory"AuthType Basicrequire valid-userthis is the .htpasswd :username1:123username2:342now 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.hi...thanks but i dont think this is the reason....i forgot to say that i added the following lines to the httpd file in the configuration folder :AllowOverride AllOptions NoneOrder deny,allownow when i enter the wrong username/pass it pops up the window again..when i enter the correct info(which is stored in the .htpasswd) it says you are not authorized to view this folder ...i think the problem is simpler than what you provided...so if you still can help ...your help is appreciated alot.thanks.
|
|
|
|
|
Back to top
Sponsor Advertising
|
|
|
|
|

|
leafer
Level 1 User
Occupation:
Offline
|
Joined: Jun 16, 2007
Find all post by leafer
Total Posts: 2
0.00 posts per day
Total Words: 0
|
Posted: Wed Oct 29, 2008 11:12 am Post subject: help with .htpasswd authentication /apache on windows xp ?
|
|
|
|
|
|
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'd ask if it had compatible file permissions, but on Windows, that concept is a lot more primitive.)
|
|
|
|
|
|
Back to top
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|