> Is there a way to do this? The documentation does not have any reference
> to be able to change the document root (just get it via
> $r->document_root). 


see recipe 4.3 in the cookbook for a description of $r->document_root 
and the perils involved.  the minimum you should be aware of is that 
DocumentRoot is a server attribute, not a request attribute, so 
changing it affects all future requests to the child process unless 
you set it back.

the code we use as an example is here

   http://www.modperlcookbook.org/code/ch04/Cookbook/Userdir.pm

and all of chapter 4 can be viewed online here

   http://www.webreference.com/programming/perl/cookbook/

HTH

--Geoff

Reply via email to