Hi,
I have a situation where I have 3 Apache 2.4.7 Servers and all 3 have mount points set up to one location on another server. They therefore all share the same Apache 'vhost.conf' file.
I would like to have the logs from each host in separate files. Does anyone know how to do this?
Currently:
ErrorLog /home/app/deploy/logs/error.log
CustomLog /home/app/deploy/logs/custom.log combined
I would like it to write something like:
ErrorLog /home/app/deploy/logs/{$hostname}.error.log
CustomLog /home/app/deploy/logs/{$hostname}custom.log combined
Your help is much appreciated.