I'm currently running a setup where different projects are served according to URL:
http://machine_address/project_nameA
http://machine_address/project_nameB
(...)
Since all projects are served under the same VirtualHost
, I ended up having each project handled by a different WSGIDaemonProcess
such that they can be restarted independently. In addition, each Daemon
is run under a different user according to the project settings.
The only limitation I have with this setup is that all the Apache
logs still go into the same file on /var/log/apache2/
.
What I would like to have is each project writing its own log, allowing owners of a given project to monitor the project specific logs (access, error,...).
I've tried to use the ErrorLog
and TransferLog
directives, but since these are restricted to either the Server
or the VirtualHost
level, I couldn't figure out a way to compartmentalize the logs.
So this question is divided into two:
- How can I have individual logs on a per-project basis?
- Is there any way to have these logs being created with a specific group/owner and permission, such that project owners can read but not write to the logs?