I'm trying to alter the Apache configuration from within a module, in code. Ideally, instead of having a number of these sections in a config file:

   <Location /sl/foo>
           SetHandler perl-script
           PerlResponseHandler SL::Foo
   </Location>

I'd like to have code:

set_response_handler( Location => '/sl/foo', PerlResponseHandler => 'SL::Foo' );

or similar.

I've checked the documentation and searched, but nothing seems to demonstrate how to do this. The documentation for Apache::Directive and Apache::CmdParm is woefully incomplete. :)

It's OK if any particular solution requires execution at startup time, as I don't plan on registering any new location response handlers at runtime.

Thanks,
y


-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to