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

5 posts / 0 new
Last post
#1 Wed, 06/24/2009 - 01:29
rolypoly

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.

Wed, 06/24/2009 - 06:26
andreychek

What does it do (or not do)?

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

Wed, 06/24/2009 - 10:04
rolypoly

It did generate the .htaccess and htusers files.

Fri, 10/15/2010 - 14:09 (Reply to #3)
john.brainard

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.

Fri, 10/15/2010 - 14:52
john.brainard

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

Topic locked