.htaccess and http.conf
having trouble w/ one of these 2 files.
i made a web page that comes up fine in my web browser. however i wanted to add some authentication.
the web site starts in /var/www/casey/ which is also the documentroot in my http.conf
i made a .htacces file in here that looks like
#############
AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthType Basic
AuthName "sfkjaskfjaljf"
order deny, allow
deny all
allow 192.168.1
############
i was told that i should change my http.conf to look like this
##########
# somewhere shorttly after teh DocumentRoot part
AllowOverride all # instead of none
######
restarted httpd several times, tried different browsers (even lynx).. nothing happens.
also, i tried to do this with a slightly different .htaccess file, so that it looks for a passwd instead of a host. Again nothing happens, no popup auth box.
any suggestions?
|