perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Wetzig <mod-p...@wetzig.de>
Subject How to get current DocumentRoot for VirtualHost in Config Handler
Date Wed, 12 Jul 2006 12:51:55 GMT
Hi,

i have an config handler like in
http://perl.apache.org/docs/2.0/user/config/custom.html#Creating_and_Using_Custom_Configuration_Directives

is it somehow possible to lookup the current DocumentRoot from within a
directive handler like the following

  sub MyParameter {
      my ($self, $parms, @args) = @_;
      # somehow get DocumentRoot (not ServerRoot)
  }

i've tried various approaches and looked through api-docs, but without success :-(

$parms->server->server_hostname gives me the current VirtualHost, but i see no
method for looking up DocumentRoot.

Thanks for any hints.

best regards,
Christian

Mime
View raw message