I have noticed that mp2 API doesn't have APIs to retrieve vhost's server_root and document_root. I've talked to the guys at #apr, and they suggest to add new C APIs: ap_server_root(s) and ap_server_document_root(s)

the latter is cumbersome as there is already ap_document_root(r), they think to have ap_document_root(r, s) in 2.1.

So what API should we have in mp2, stick to ap_server_document_root(s), to be identical with httpd-2.0, or should we fix that for our users to make it intuitive (i.e. let document_root accept $s as well). I propose:

$r->document_root; # we have it already
$s->document_root; # new:
$s->server_root;   # new:

The other option is 1:1 mapping:

$r->document_root; # we have it already
$s->server_document_root; # new:
$s->server_root;   # new:

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to