>   $r->document_root(hostname2docroot($r->hostname));

you just can't do that without setting it back at the end of a request.  see

  http://www.webreference.com/programming/perl/cookbook/chap4/2.html

for why.

> Can't locate object method "document_root" via package "Apache::RequestRec"

try

  use Apache::RequestUtil ();

HTH

--Geoff

Reply via email to