I have been trying to require authentication to a certain folder for my little website, and have been unable to. it just allows me access no problems :/
in server configuration i have all three option checked, and none unchecked
and no, i'm not connecting from 192.168.0.102, i'm connecting from 192.168.0.103
this is the folder i wish to require authentication, I used
to create the .htpasswd file
[/code]
in server configuration i have all three option checked, and none unchecked
and no, i'm not connecting from 192.168.0.102, i'm connecting from 192.168.0.103
Code:
ErrorDocument 404 /error404.html
ErrorDocument 401 /error404.html
authtype Basic
authname FU
authuserfile /opt/lsws/DEFAULT/html/alliancewars/.htpasswd
order deny,allow
deny from all
allow from 192.168.0.102
require valid-user
satisfy any
Code:
htpasswd -bcd .htpasswd $username $password
bash-2.05b# dirs && ls -a
/opt/lsws/DEFAULT/html/alliancewars
. .. .htaccess .htpasswd index.html
/opt/lsws/DEFAULT/html/alliancewars
. .. .htaccess .htpasswd index.html