Password protect for /home/user/cgi-bin/test doesn't work!! Yes, i did choose CGI subdirectory and key in "test"

Hello,

I notice the password protect for subdirectory in cgi-bin doesn’t work.

Password protect for /home/user/cgi-bin/test doesn’t work!!
i did choose CGI subdirectory and key in “test” .

I am using the latest virtualmin.

What does it do (or not do)?

Do you receive any errors? Does it generate any .htaccess file at all, even if blank?
-Eric

It did generate the .htaccess and htusers files.

Same here … created the .htaccess and htusers files, but I can still run stuff in the directory. not so good for admin access …
http://site/cgi-bin/admin/blah.pl

… looking around apache stuff now, it may be out of webmin/virtualmin’s hands.

This is what is happening …

Its in apache’s conf file … standard bit at the beginning of the file is taking away all permissions …
For directory: “/”
AllowOverride None

So, you can’t allow any overrides, unless you enable them.

When a new site is created it gets a new directory block, and part of the set up includes a bit that allows any overrides.
However, when a cgi-bin directory is set up, by default it doesn’t get this (maybe it shouldn’t). I went and added “AllowOverride AuthConfig” to the directory block for my web site’s cgi directory and the .htaccess started to work.

Now I’ve got to get this to get done automatically in virtualmin …

John