You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Bill Parker <do...@netnevada.net> on 2003/02/11 16:57:08 UTC

[users@httpd] using .htaccess to protect a file in cgi-bin

Hi All,

	I would like to know how to use .htaccess to protect file 'foo.pl' in

/usr/local/httpd/cgi-bin

I can protect whole directories with this:

AuthUserFile /home/httpd/html/mrtg/.htpasswd
AuthGroupFile /dev/null
AuthName "Enter Username/Password for Access to MRTG data"
AuthType Basic
Satisfy All
require valid-user

which protects the mrtg directory under /home/httpd/html

can this be done for a single file?

-Bill


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org