You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Torsten Foertsch <to...@gmx.net> on 2005/12/15 10:44:44 UTC

[MP2] Setting ExecCGI in a TransHandler

Hi,

what is the canonical way to change "Options" from a handler?

Apache2::Access::allow_options is read-only. Various attempts with 
$r->add_config in the uri translation and header parser phases failed:

$r->add_config([q{Options +ExecCGI}]): $r->add_config() has failed: Options 
not allowed here

I have now written a little C-level module but is that the way?

Torsten

Re: [MP2] Setting ExecCGI in a TransHandler

Posted by Geoffrey Young <ge...@modperlcookbook.org>.

Torsten Foertsch wrote:
> Hi,
> 
> what is the canonical way to change "Options" from a handler?

I don't think so, as Options is private to httpd

> 
> Apache2::Access::allow_options is read-only. Various attempts with 
> $r->add_config in the uri translation and header parser phases failed:
> 
> $r->add_config([q{Options +ExecCGI}]): $r->add_config() has failed: Options 
> not allowed here

yes, that makes sense.

note to all: add_config() is .htaccess-style insertion into the config
process, governed by the same rules as an .htaccess file.  so, if you're
using it to add directives that are limited in scope look out :)

> 
> I have now written a little C-level module but is that the way?

probably.  there are a few examples of how to do this via xs for mp1, of
which this
  http://www.modperlcookbook.org/code/ch08/Cookbook-LanguagePriority-0.01.tar.gz

is one

HTH

--Geoff