Menu

Vhost name in error log

rilCy
2019-10-07
2019-10-10
  • rilCy

    rilCy - 2019-10-07

    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.

     
  • Pascal Buchbinder

    Hi Cyril
    You could add "%v" to the ErrorLogFormat directive to show the server name in the log.

    Regards, Pascal

     
  • rilCy

    rilCy - 2019-10-10

    Hi Pascal,

    Thank you very much for your answer, this exactly what i needed =)

    Cheers

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.