I'm not sure my question is clear, but here is a small explication:
I'm using apache mod_vhost_alias, which is great for me to create new domain easily (just create the according domain name folder) It is configured as is :
UseCanonicalName Off
VirtualDocumentRoot /var/www/%0/htdocs
However, I'd like to be able to automatically write log to /var/www/%0/logs
Is there any way to do this with such mod?
Thank you
As far as I can tell you can't do this out of the box. But you can log to a named pipe or directly to a script and have the script recreate the logfiles as you wish:
http://httpd.apache.org/docs/current/logs.html#piped
If you need help with the script please post an example of your logfiles.
A non-optimized non-tested example written in shell script: