On Sat, May 17, 2008 at 11:04 AM, kropotkin <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I'm just trying to understand the basics, having set up my server to run
> mod_perl.
>
> say a request is made which via a Location directive and PerlResponseHandler
> directive is handled by my Perl module say Handler1.pm , ok a child process
> is spawned with mod_perl embedded which also loads and compiles Handler1.pm.
> Ok. If another request is made to Handler1.pm subject to the child process
> not having been killed by the parent I understand that this same child
> process will handle this new request. But if a request is made to
> Handler2.pm would this always result in a new child process or could the
> first process handle this request as well - just adding the code for
> Handler2.pm to its process space?

All children will handle any request.  New children are spawned in
response to a need rather than a new "type" of request.

> This matters because I am setting up multiple web sites and I am wondering
> if it is better to have just a few PerlHandlers or to have different ones
> per site.

If by different sites, you mean different apache servers, then it
doesn't make much difference.  However, if you are talking about
virtual hosting, again any child can handle the request.

Sean

Reply via email to