>>>>> "Jonathan" == Jonathan Swartz <[EMAIL PROTECTED]> writes:
Jonathan> Here's what I wanted to work:
Jonathan> sub trans_handler
Jonathan> {
Jonathan> my ($r) = @_;
Jonathan> my ($user) = ($r->header_in('Host') =~ /^[^\.]+/);
Jonathan> $r->document_root("/home/$user/www");
Jonathan> return DECLINED;
Jonathan> }
Jonathan> PerlTransHandler trans_handler
Jonathan> but I got
Jonathan> [error] Usage: Apache::document_root(r) at handler.pl line 41
Jonathan> so document_root ain't writable.
I think you can get the same effect by *ignoring* the document root.
Just set $r->filename($whatever), and return OK from the handler.
Then the default handler won't do the URI-to-filename translation, and
everybody goes home happy.
--
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!