Hello Arshavir, > I am trying to use the stacked handlers functionality but cannot seem > to get it working. What I have is the following 2 modules: > > package Test; [...] > $r->push_handlers(PerlResponseHandler => 'Test1::handler'); > > package Test1; [...] > sub handler { [...] > > <Location /test/> > SetHandler perl-script > PerlResponseHandler Test > </Location> > > I was hoping the request to http://localhost/test/ would eventually be > passed to Test1 and I would see the "we are here" message, but all I > get is an empty screen. Does anyone see any problems with this setup?
I don't know if it's still the case with Apache2, but in Apache1 there can be only 1 content handler that either returns 'OK' (ie. content is generated) or 'DECLINED' (meaning: do it yourself Apache). To do what you want to do I would write a handler in one of the earlier stages (probably a fixup handler) that would set the handler. Does this help? Frank