Click to See Complete Forum and Search --> : password protecting directory.


Niatrom
02-14-2001, 05:30 PM
ARGH.. i cant seem to get it to work?!??

it just loads the index.html like normal..

(server changed to protect the innocent :))

:/content/www.****.net/docs/private$ ls -a -l
total 5
drwxrwxrwx 2 aragon ** 1024 Feb 14 13:29 ./
drwxr-xr-x 14 aragon ** 1024 Feb 14 13:29 ../
-rw-r--r-- 1 aragon ** 181 Feb 14 13:32 .htaccess
-rw-r--r-- 1 aragon ** 21 Feb 14 06:44 .htpasswd
-rw-r--r-- 1 aragon ** 9 Feb 14 06:41 index.html
:/content/www.*****.net/docs/private$


and, .htaccess :

AuthUserFile /content/www.****.net/docs/private/.htpasswd
AuthGroupFile /dev/null
AuthName 'Password Protected' ( i tried w/o the single quotes too)
AuthType Basic

<limit GET POST>
require user aragon
</limit>


and finally, .htpasswd:

aragon:ayra57uhyfg



help anyone?? , like i said, it just loads the index.html like normal.

[ 14 February 2001: Message edited by: Niatrom ]

[ 14 February 2001: Message edited by: Niatrom ]

mangeli
02-14-2001, 05:38 PM
Make sure that the .htaccess file is chmoded to 0755

Niatrom
02-14-2001, 05:41 PM
didnt work

Niatrom
02-15-2001, 11:21 AM
:confused:

feti
02-15-2001, 01:36 PM
Try using:

require valid-user

instead of

require user aragon

Niatrom
02-15-2001, 02:14 PM
tried that too :(

osnap
02-15-2001, 02:19 PM
If you have access to your httpd.conf file edit the part that says "AllowOverride None" to "AllowOverride All". It's near the top.

I think it's AllowOverride, it might be something different but similar, but I'm not near my linux box right now.