hello!
Im trying make my directory restriction work by using htpasswd and htaccess.
Im running Win XP and Apache 2.0.50 server.
The thing is I get asked for username/password when enter the directory, but the password doesnt work..
I have made the htpasswd file in ms-dos with the bin/htpasswd utility.
I have config the httpd file:
Code:
#AllowOverride controls what directive may be placed in .htaccess files.
#It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
htpasswd file:
Code:
Dj_OcTaGoN:$apr1$X1......$c.ORqPwqeeE1drntjq25s1
htaccess file:
Code:
AuthUserFile /bin/.htpasswd
AuthGroupFile /dev/null
AuthName "Download Section"
AuthType Basic
require user valid-user
Im confused of the AuthUserFile path...should it be path from server root, webdirectory or home directory?
And another thing is, I got another htaccess file in the top root directory to prevent directory view of sites (Options -indexes)
does this affect this other htaccess file which i got in the passwd protected directory?
I dont know what Im doing wrong, I might be stupid but hey, im new into this!
