.htaccess in cgi-bin

i have a .htaccess file in my
htdocs/protected dir and it works fine
(i am asked for a password from the
.htpasswd file when i request the
data in that dir via my browser)
but when i put the exact same .htaccess file into my cgi-bin/protected dir it
wont work!

any ideas why not?
Who is Participating?
feenixConnect With a Mentor Commented:
You probably don't have the appropriate settings in your web server configuration. By default the system probably doesn't allow you to set the auth config for the CGI directory.

If you have Apache, check that there is a line like:
AllowOverride AuthConfig
in the config of your CGI directory.
All Courses

From novice to tech pro — start learning today.