Hi,
I am trying to display vhost name in the Apache error logs, i checked the documentation, being searching for an option but cannot find out how to.
Currently, i have the vhost information within qsaudit.log
www.vhost.com xxx.xxx.xxx.xxx [07/Oct/2019:10:01:32 +0200] 429 9 D; - - - - - /wp-content/themes/custom-theme/assets/js/reduire-menu.js id=XZrw3PDiHCBFMTe5vepX4QAAAMU 15704352922121409731801 2661
But customers only have access to the error logs, unfortunately the vhost does not appear here =(
[Mon Oct 07 10:01:32.228518 2019] [:error] [pid 31801:tid 139692010346240] [client xxx.xxx.xxx.xxx:64174] mod_qos(010): access denied, QS_LocRequestLimit* rule: /(50), concurrent requests=57, c=xxx.xxx.xxx.xxx, id=XZrw3PDiHCBFMTe5vepX4QAAAMU, referer: http://www.referer.com
Any chance to adapt the error log output to make the vhost name appear in error log as well ?
Thank you in advance for your help.
Cheers.
Hi Cyril You could add "%v" to the ErrorLogFormat directive to show the server name in the log.
Regards, Pascal
Hi Pascal,
Thank you very much for your answer, this exactly what i needed =)
Cheers
Log in to post a comment.
Hi,
I am trying to display vhost name in the Apache error logs, i checked the documentation, being searching for an option but cannot find out how to.
Currently, i have the vhost information within qsaudit.log
But customers only have access to the error logs, unfortunately the vhost does not appear here =(
Any chance to adapt the error log output to make the vhost name appear in error log as well ?
Thank you in advance for your help.
Cheers.
Hi Cyril
You could add "%v" to the ErrorLogFormat directive to show the server name in the log.
Regards, Pascal
Hi Pascal,
Thank you very much for your answer, this exactly what i needed =)
Cheers