Philippe M. Chiasson wrote: > > > Stas Bekman wrote: > >> 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.
this is striking me as a bit odd at the moment. if you're not using http then you have implemented a connection filter, right? if so, then I have some thoughts. the entire concept of virtual host is really http based. that is, the only way Apache currently dispatches to a vhost is by comparing the request line or host header to something like ServerAlias. and both the request line and host header are http-specific. so what exactly does it mean for a non-http protocol to have access to a vhost? wouldn't they need to decide for themselves the mechanism by which they are sent to a virtual server, which by definition of not being http would mean that the decision made by vhost.c:check_hostalias and whatnot would be wrong? the second thought is exactly what you would want to log to a vhost-specific log from a connection handler, since by definition they need to process everything non-request-cycle related themselves. that is, where would this warning occur that it would need to be redirected, not have access to $r, but have had a http-based vhost container (properly) applied? --Geoff --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]