[NTLUG:Discuss] CGIWRAP - cgi-bin - and .htaccess

MadHat madhat at unspecific.com
Tue Jan 11 09:24:20 CST 2000


"Daniel L. Shipman" wrote:
> 
> CGIWRAP - cgi-bin - and .htaccess
> 
> What do they have in common NOTHING except a sole purpose in life to drive
> me bonkers
> 
> I need to allow a user to run .htaccess limited scripts through CGIWRAP
> 

CGIWRAP and .htaccess will not work togeather, cgiwrap run the file
locally (after checking the owner and such) and the echos the output to
std out, it does not go through thr web server to get to the "real" cgi
script.

> I also need to figure out how to run run .htaccess limited scripts from my
> own cgi-bin dir
> I can't believe it's that difficult but it is - I am running Apache Red Hat
> with virtual hosting I can utilize .htaccess to limit any other directory
> EXCEPT a cgi directory - please help me

You have to make some changes in the access.conf
<Directory /home/httpd/cgi-bin>
AllowOverride None
Options ExecCGI
</Directory>

Should be the default, to use require (like in usernames and passwords)
you have to change it to include AuthConfig, and if you want to protect
agains hosts (with the allow and deny) you have to add Limit, like this:

<Directory /home/httpd/cgi-bin>
AllowOverride AuthConfig Limit
Options ExecCGI
</Directory>
 

> 
> Daniel Shipman, VP Internet Services
> SRJ Marketing Communications
> Phone * 214-528-5775
> Fax   * 214-599-0775
> 
> _______________________________________________
> http://ntlug.org/mailman/listinfo/discuss

-- 
MadHat




More information about the Discuss mailing list