<Directory /> and </Directory> and in between the lines saying <Directory "/var/www/html"> and </Directory>in both places you probably have the line "AllowOverride None". As long as this is in effect, directories below /var/www/html cannot have an .htaccess file that specifies their own access controls.
However, the solution is *not* to take those lines out (which could potentially have other unexpected consequences), but rather to add another set of lines somewhere in httpd.conf:
<Directory "/var/www/html/my-password-folder/"> AllowOverride All </Directory>where "/var/www/html/my-password-folder/" is the path to the directory you want to password-protect. (It must be the "path" on the local Linux filesystem, not the "path" as seen by the user's web browser.)
(And after making that change, of course, restart the httpd service.) This basically means that now a .htaccess file in the directory is allowed to specify its own access controls.
-Bennett At 11:02 AM 7/25/2010, Teun wrote:
Hi, I have problems with htaccess and server side inludes. If I try a secure websitefolder with a .htaccess file and a .htpasswd file. There will not ask for a user/passwd to loging in. It just shows me de folder not secured. I have this problem also on an other linux computer. It was not possible to make it function properly with htaccess, ssi and with the include mod by command a2enmod. Maybe the updates are wrong??? Please help me, thanks !
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx