Re: $r->document_root

[prev] [thread] [next] [Date index for 2005/02/15]

From: Geoffrey Young
Subject: Re: $r->document_root
Date: 21:10 on 15 Feb 2005

> First, in my little test, I alternate between five different hosts, and
> don't do the cleanup handler to put the docroot back, and everything looks
> fine.

you will eventually, once you get enough requests to cycle through all of
the httpd children.

> 
> Second, I couldn't get this
> 
> $r->document_root(hostname2docroot($r->hostname));
> 
> To set the docroot.

yeah, I seem to recall this behavior in mod_perl 1.0 as well.  strange indeed.

> My question is, why switch to apache2 if I have to use a prefork server, and
> seemingly can't take advantage of threading?

apache 2.0 is about much more than threading.  however, as with all
migrations you need to weigh migrations pains, new features you may or may
not need, your perception of community support of the codebase, and so on
before making a change.

personally, I think there is lots to apache2/mp2 that would warrant a
change, but if you don't use any of the new features or APIs then you might
feel differently.  and apache 1.3/mp1 isn't going away at all, so you should
feel comfortable sticking with that platform if it suits you.

HTH

--Geoff

(message missing)

$r->document_root
Cahill, Earl 23:14 on 14 Feb 2005

Re: $r->document_root
Geoffrey Young 23:21 on 14 Feb 2005

Re: $r->document_root
Geoffrey Young 23:26 on 14 Feb 2005

RE: $r->document_root
Cahill, Earl 20:43 on 15 Feb 2005

Re: $r->document_root
Geoffrey Young 21:10 on 15 Feb 2005

Re: $r->document_root
Stas Bekman 01:48 on 19 Feb 2005

Re: $r->document_root
Stas Bekman 02:02 on 19 Feb 2005

Re: $r->document_root
Geoffrey Young 13:54 on 19 Feb 2005

Re: $r->document_root
Stas Bekman 17:21 on 19 Feb 2005

Re: $r->document_root
Joe Schaefer 14:12 on 19 Feb 2005

Re: $r->document_root
Geoffrey Young 05:26 on 20 Feb 2005

Re: $r->document_root
Stas Bekman 01:29 on 21 Feb 2005

Re: $r->document_root
Joe Schaefer 02:38 on 21 Feb 2005

Re: $r->document_root
Stas Bekman 02:43 on 21 Feb 2005

Generated at 12:48 on 22 Feb 2005 by mariachi v0.52