Welcome to WebmasterWorld Guest from 23.21.38.201

Forum Moderators: bakedjake

pwd protecting a sub-dir in cgi-bin

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

WebmasterWorld Senior Member 10+ Year Member



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)

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



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)

WebmasterWorld Senior Member 10+ Year Member



That did the trick.

Cheers.

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month