ModPerl and Apache question

ModPerl and Apache question

am 07.04.2011 07:52:44 von fzarabozo

Hello All,

I'm trying to write a ModPerl handler for Apache 2.2 that will act on
directly. Whatever I need the handler to do is working
correctly (basically some analisys of the request), but what I cannot find
how to do, is how to tell Apache that my handler has nothing to do with the
request and to pass the request through just like of my handler would never
taken the request.

Does anyone know what value my handler should return so Apache continues
with the request normally?

Example:

package My::ApacheHandler;

use strict;
use warnings;
use Apache2::RequestRec ();
use Apache2::RequestIO ();
use Apache2::Const -compile => ':common';

sub handler {
my $r = shift;
if (...whatever my handler should process if the request matches some
criteria...) {
# Some work and the response to the request;
return Apache2::Const::OK;
} else {
# Here my handler has nothing to do, I want Apache to act normally
with the request (e.g. deliver the requested html/cgi file)
return $what; # <--- ?
}
}

I hope someone has good knowledge/experience with this. Thanks in advance!
:-)

Regards,

Francisco Zarabozo


_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: ModPerl and Apache question

am 10.04.2011 10:43:52 von fzarabozo

Hi All,

The answer to my question is:

return Apache2::Const::DECLINED

So far that's working for what I intended.

I just wanted to post it in case someone else comes across the question in
the future.

Cheers,

Francisco Zarabozo


--------------------------------------------------
From: "Francisco Zarabozo"
Sent: Thursday, April 07, 2011 12:52 AM
To:
Subject: ModPerl and Apache question

> Hello All,
>
> I'm trying to write a ModPerl handler for Apache 2.2 that will act on
> directly. Whatever I need the handler to do is working
> correctly (basically some analisys of the request), but what I cannot find
> how to do, is how to tell Apache that my handler has nothing to do with
> the
> request and to pass the request through just like of my handler would
> never
> taken the request.
>
> Does anyone know what value my handler should return so Apache continues
> with the request normally?
>
> Example:
>
> package My::ApacheHandler;
>
> use strict;
> use warnings;
> use Apache2::RequestRec ();
> use Apache2::RequestIO ();
> use Apache2::Const -compile => ':common';
>
> sub handler {
> my $r = shift;
> if (...whatever my handler should process if the request matches some
> criteria...) {
> # Some work and the response to the request;
> return Apache2::Const::OK;
> } else {
> # Here my handler has nothing to do, I want Apache to act normally
> with the request (e.g. deliver the requested html/cgi file)
> return $what; # <--- ?
> }
> }
>
> I hope someone has good knowledge/experience with this. Thanks in advance!
> :-)
>
> Regards,
>
> Francisco Zarabozo
>
>
> _______________________________________________
> ActivePerl mailing list
> ActivePerl@listserv.ActiveState.com
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs