Am 21.10.2009 um 12:00 schrieb Torsten Foertsch:

On Wed 21 Oct 2009, Alan Young wrote:
http://perl.apache.org/docs/2.0/user/config/config.html#C_Parent_

Unfortunately the Parent option works only in vhosts. But I believe it
could be hacked to work also for directory containers. Of course
PerlPostReadRequest, PerlTranslation and PerlMapToStorage phases are
handled by the main interpreter for the vhost. But just before the
PerlHeaderParserHandler is called one could check if the rest of the
request cycle is to be handled by a different interpreter and fetch one
from a cache or instantiate a new one.

Of course the user would have to know what he is doing using this
feature. For example setting a PerlResponseHandler where the handler
routine is an anonymous sub in the translation phase would not work as
expected.

An alternative would be to have modperl inspect the uri prior to
PerlPostReadRequest and decide what interpreter to use based on it,
similar to what ServerPath does. Then the same interpreter would handle
all phases.

Torsten

--
Need professional mod_perl support?
Just hire me: torsten.foert...@gmx.net



You could hide these vhosts behind a proxy, and +Parents just works fine with different lib direcories. Following the mod-perl performance guide it is recommended to split your app to frontend an backend apache and so you can have as many different vhosts in the backgroud as you need. Why reinvent the wheel ?

Rolf Schaufelberger




Reply via email to