>>>>> "Jonathan" == Jonathan Swartz <[EMAIL PROTECTED]> writes:
Jonathan> Sure, but then index.html files won't get found,
Uh, why not? No module after the Trans phase looks at document root,
that I'm aware of. index.html is handled by mod_autoindex during the
content phase upon noticing that it's a MAGIC_DIR_TYPE, causing an
internal (or external, if no slash) redirect. And *that'll* come back
through your Trans handler to get the same treatment.
Jonathan> Alias
Jonathan> directives won't get processed.
Well, that's true, because those are Trans phase items. But do you
really want an alias to be run? It'll be wrong! Besides, you can do
the same Aliasing at the time you come up with the $r->filename.
Another option is to do a subrequest, setting $r->pnotes with a value
that will cause *your* handler to quickly DECLINE, and letting the
rest of the stuff trigger. Then look at the $r->filename from that
subrequest, and use that to decide if you need to edit your
$r->filename on the main request, and return OK. Weird, but cool. :)
Jonathan> etc. Basically I don't want
Jonathan> to have to reimplement Apache's entire default file handler
Jonathan> in Perl.
I don't think you need to. I think only the Trans handlers need to
worry about docroot. Of course, I'm possibly wrong. :)
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!