Michele Gherlone wrote:
> Hi all,
> I hope this message is appropriate here and won't break any of the holy
> rules of the list...

I doubt it :)

> I've recently upgraded my production environment to modperl 2.0.1 and
> Apache 2.0.54 under linux and Mason 1.29_02. I run a pretty complicated,
> but powerful configuration and everything is ok. Porting all of my stuff
> to MP2, I really felt that it is not yet documented as one would expect.

sorry about that.

> For example I'd like to know more about Apache's request life cycle. I
> scanned all the documents available online, but didn't really find
> something which explains in details when the major hooks of
> Perl*Handlers really happen (and their relationships with Apache's
> modules).

um... there's quite a bit on this, actually.  for the most part the apache
request lifecycle is the same as with apache 1.3.X, so you can use that
documentation as your guide - all of the available mod_perl books cover
this, for example.  there's also this

  http://perl.apache.org/docs/2.0/user/handlers/server.html

which should help.

> I try to ask here a few questions (no homework -:):

well, homework exists for a reason, and perl.apache.org is your friend.

> -when does mod_dir really make its job?

during fixups, but that's not a mod_perl question :)

> -How comes that, if serving a directory under SetHandler modperl, one
> can have mod_dir doing its job by means of a PerlFixupHanlder, simply
> setting $r->handler('APACHE_MAGIC_DIR') and returning OK?

because mod_dir looks at r->handler when it runs, and it runs after mod_perl :)

> -Does this mean that the cycle has to restart, since the
> PerlResponseHandler (or eventually e default-handler) is never run?

yes.  either transparent to your browser (in the case of "url/" to
"/url/index.html" or non-transparent (in the case of "url" to "url/").


> -Why does this simple PerlTypeHandler:
> package Apache::MIMEMagic;

> (if applied server wide) completely break for ALL of the directories
> under DocumentRoot the behaviour of mod_dir (DirectoryIndex lists
> completely ignored)?

because it's being applied server-wide, without regard to whether the
request is a for a directory or not.

> Hoping I won't get neither ignored nor flamed

nope, but you have lots of reading to do.  I'd suggest one of the books from
the mod_perl site to get your started understanding apache basics.

--Geoff

Reply via email to