I'm trying to fix the logging functions in the vhost environment. In the mp1 all the methods/functions called on anything but $r/$s was relying on Apache->request. In mp2 Apache->request will be unavailable outside of the httpd protocol. So in order to be able to redirect warnings to the vhost's private log file one needs to figure out what $s should be used. Therefore I think we need to introduce 'PerlOptions +GlobalServer', a big brother for 'PerlOptions +GlobalRequest', which will be set in modperl_hook_pre_connection.

When 'PerlOptions +GlobalServer' is set Apache->server can now be the vhost/base server. Otherwise it will be the base server.

The base server will be always Apache->server->base_server or may be there should be a direct alias Apache->base_server, which will always give us the base server.

When implemented places where Apache->request was used only to get the global server object, can query Apache->server.

Thoughts?

--
__________________________________________________________________
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