Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

geoff (2013)

  reversethis-{gro ... om} {ta} {ffoeg}

see [] for personal information, links to presentations, GPG key, and so on.

Journal of geoff (2013)

Tuesday October 14, 2003
01:47 PM


[ #15203 ]
mod_perl 2.0 now has a new hook: the PerlMapToStorageHandler.

from what I can tell, translation in Apache 2.0 isn't quite the same as it used to be - it looks like the core translate_name phase simply figures out what r->filename ought to be (by overlaying DocumentRoot or various Alias mappings) and the map_to_storage phase actually does the filesystem stat calls to determine the file to serve and things like r->path_info. this is very different from 1.0, where the stat calls could be overridden with a PerlTransHandler.

so, the bad news is that returning OK from a PerlTransHandler will not reduce IO overhead for dynamic URLs. The good news is that now you can use a PerlMapToStorageHandler for that. and while I'm still trying to figure it all out, it seems that the canonical use for each will remove the separation of functionality required in 1.0. That is, the PerlTransHandler can be used to safely meddle with $r->filename, return OK, and still let Apache's core mapping engine serve the right file. cool.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.