On Mon, Apr 15, 2013 at 1:25 PM, thijso <
thi...@gmail.com> wrote:
> Plack::App::Cascade looks nearly like what I'm after.
>
> Apache2 stacked handlers work with Apache2 constants as return values to
> indicate what apache should do next. For example, if I return DECLINED,
> apache will try the next handler in the list. If I return DONE, apache will
> stop in the list and pass on what I printed to apache as the response.
>
> Plack::App::Cascade works with HTTP return codes, and will try the next
> while the return is a 404.
>
> Maybe I could look at the internals and adapt it to my situation, though.
I did a similar conversion to Plack from mod_perl, could you please
paste your whole Apache config to the list?
Depending on what Apache features you're implicitly relying on under
mod_perl you may have to do some very different tricks in Plack-land
to emulate them, or not.
E.g. I have a ~300 line function that handles the emulation of stacked
handlers & cleanup handlers along with ErrorDocument directives.
Also note that you can change over to the "unstacked" handler *before*
you migrate to Plack. That's what I did. It makes it much easier to
determine if that code is buggy, or whether something else in your new
setup is buggy.