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

Re: [cobalt-users] Handler "cgi-wrapper" not found for prog.cgi



On Tue, 30 Jul 2002, Jolley, Carl wrote:

> I'm get scores of these error message in my /var/log/httpd/error
> file.
> have this same problem. I've yet to see either a plausible
> explaination or a solution. Does anyone have any insight?

It's a glitch in apache aggrivated by the way cobalt/redhat defined 
the mime type handlers in the config files.

The short answer is some code in apache is giving up searching fora mime
handler and logging the error too early, another block of code after it
does in afct know how to handle the cgi, but it's too late, it's
already logged an error..

If you want, try this (been a while, you may need to fiddle)

turn off cgi for the site [or remove AddHandler cgi-wrapper .cgi from
httpd.conf]

replace with

Action application/x-wrapped-cgi /cgiwrapDir/cgiwrap
AddType application/x-wrapped-cgi .cgi .pl

[You can put those in .htaccess if you want, Note: raq4 won't be happy
because of auth issues at .htaccess level [Options]][1]


This makes apache execute cgi's by type instead of trying
to lookup the action directly from the file extension, which
is what's erroring out (it's trying that first, erroring, and 
retrying by looking up the Type's associated with file extensions, and
then figuring it out.

Note that the above hack still uses cgi-wrapper, which you want


gsh

[1] - The raq4 is in fact doing this correctly, it closes a minor
security concern with users enabling features...