.htpasswd and Alias Directory
Posted on 2004-10-05
I have to restrict the access of a directory using the .htaccess and .htpasswd files.
When I use it for a directory that is in the directory root all is fine, when I try to use it for a dierctory out of the root it dosen't work.
In the httpd.conf I use Alias /www/ "/databases/www/"
if I create a pippo.htm file I can see it.
Now I create the .htaccess file like the other way:
and the .htpasswd file:
but no auth is required. I move this 2 file in another folders that is in the directory root chaning only the .htaccess pointer all works fine.
So how can I use the Apache .htpasswd restriction password system with a directory out of the directory root???
Thanks and sorry for my english