[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-developers] CGI Wrap Disable in .htaccess



 
Hi Kevin,
 
I've got this halfarsed implemented, and I believe you've got to add AddTypes with cgi-script in them, in addition to adding in the appropriate CGI module.  This is documented in the knowledge base I believe, to some extent, as well as on Apache's web site. (http://www.apache.org/).
 
My implementation uses these lines in both the VirtualHost directives as well as in .htaccess, I'm not sure if there's a difference there, but apache documents what can go where fairly well.
 
Have fun,
David Sutherland
 
-----Original Message-----
From: cobalt-developers-admin@xxxxxxxxxxxxxxx [mailto:cobalt-developers-admin@xxxxxxxxxxxxxxx]On Behalf Of Kevin D
Sent: Saturday, June 17, 2000 11:30 AM
To: cobalt-developers@xxxxxxxxxxxxxxx
Subject: [cobalt-developers] CGI Wrap Disable in .htaccess

I am trying to execute a perl script which contains shell commands. I assume that CGI-Wrap kills most shell commands, so I decided to disable it with a .htaccess file containing the following:
 
Options +ExecCGI
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
 
as per knowledge base article 774. The problem is, it does not seem to work, and I still can't execute the proper shell commands. I can telnet in and run the perl script from the command line and the shell commands execute just fine. It's only when I run it through CGI that I have a problem. Does anyone have a solution for me?
 
Kevin