On Thu, Jun 25, 2009 at 5:51 PM, Anthony R Fletcher<a...@mail.nih.gov> wrote:
> I have a mod_perl 2 module, running in Apache 2.2,
>
> -------------------------------------------------
> package Apache2::NNNN;
>
> use 5;
> use strict;
>
> use Apache2::Const -compile => qw(DECLINED);
>
> sub handler
> {
>        return Apache2::Const::DECLINED;
> }
>
>
> 1;
> -------------------------------------------------
>
> and this is enabled in a .htaccess file via
>
>        SetHandler modperl
>        PerlResponseHandler Apache2::NNNN
>
> Without the .htaccess config above CGI scripts run fine. With the above
> the actual script is returned.

Hmm.  Why are you doing this?  It's not clear what you're really trying to do.

If you want to change which module does the response handler phase,
you can do that, and you should be able to set it to be the
cgi-handler module, but I don't think you can do it when you're
already in the response handler phase.  Depending on what you're
really after, a filter might be the answer, or running your perl code
in an earlier phase might be it.

- Perrin

Reply via email to