Welcome to WebmasterWorld Guest from 54.146.221.231

Forum Moderators: bakedjake

Message Too Old, No Replies

pwd protecting a sub-dir in cgi-bin

     
6:55 pm on Oct 21, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 17, 2002
posts:1181
votes: 5


How do I password protect a sub dir in cgi-bin?

I can password protect any sub dir in public_html, but not cgi-bin.

I guess there is some setting in apache which is preventing password protection in that directory?

Cheers.

7:45 pm on Oct 21, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member littleman is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:June 17, 2000
posts:2924
votes: 0


Open up your httpd.conf file and something that looks like this:
<Directory "/path/to/cgi-bin">
AllowOverride None
other stuff here
</Directory>

Then modify it to something like this:
<Directory "/path/to/cgi-bin">
AllowOverride AuthConfig Limit
other stuff here
</Directory>
Then restart apache and it should work.

4:14 pm on Oct 22, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 17, 2002
posts:1181
votes: 5


That did the trick.

Cheers.