I’m wondering if there is a way to add new log files to the vhost-base.conf file. I want to add mod_deflate logs to each virtual domain. I have done this manually so far.
My best guess would be something like:
CustomLog /home/<<USER>>/var/<<DOMAIN>>/logs/deflate_access_log vhost_with_deflate_info
However, I did not see any instance of the USER variable. Is this possible?
How does log rotation work on those directories?
<<USER>> won’t work, but <<UNIQNAME>> will.
InterWorx does the log rotation of the error.log and transfer.log files after daily stats are calculated. It will ignore any new logs you put in there, so you’ll need to manage the rotation of those manually (outside of interworx).
Thanks. I’m handling the log rotations like this:
Create new file in /etc/logrotate.d/
Add the following lines to the file; replace the log filename with whatever logs you add: