Copterfly / modwsgi

Automatically exported from code.google.com/p/modwsgi
0 stars 0 forks source link

Close Apache access and error log files which aren't needed in daemon process. #103

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Previously mentioned in issue #94, should close any Apache log files in daemon 
process not 
required by that process. What this means is that if WSGIDaemonProcess in 
virtual host context and 
access log and error log also defined in VirtualHost, should close all other 
log files as they will not 
be required.

Will just need to make sure that mod_wsgi internals themselves don't log to 
main server log in some 
cases.

Even if using main server access and error logs, can close any VirtualHost 
specific logs for other 
virtual hosts if WSGIDaemonProcess defined in VirtualHost.

Original issue reported on code.google.com by Graham.Dumpleton@gmail.com on 7 Sep 2008 at 6:22

GoogleCodeExporter commented 8 years ago
Doesn't look like this is really possible.

The access logs are hidden within mod_log_config and not readily accessible.

Only main server rec is readily accessible and not those for VirtualHost 
instances which are hidden in 
server/vhost.c and not readily accessible.

That they aren't easily accessible doesn't mean they are hard to access and 
abuse as what is hard to get to is 
the Apache file handle. A rogue application could just iterate over file 
descriptors and see which are open and 
then access them directly.

Original comment by Graham.Dumpleton@gmail.com on 18 Sep 2008 at 6:45

GoogleCodeExporter commented 8 years ago
Simply not possible to do as no way of obtaining information required to make 
decision.

Original comment by Graham.Dumpleton@gmail.com on 29 Oct 2008 at 10:41