Enable the apache errorlog to show the real source IP
Hello,
Following the matching community post at https://forums.cpanel.net/threads/enable-the-apache-errorlog-to-show-the-real-source-ip.714105/ - please add to the CP apache global config, a field to set the format of the apache error log, so we can set it to our needs, mostly the setting of the source IP to be the real initiating source IP, not the proxy server.
A proxy IP is not helpful as it is usually a generic arbitrary selection by the proxy server (e.g. Cloudflare, Imperva, etc.), which we cannot even filter in the proxy server, but the real source IP will help us much more.
Assisting posts:
https://support.cpanel.net/hc/en-us/articles/360051107513-Restoring-visitors-IP-with-mod-remoteip
https://serverfault.com/questions/795428/log-clients-real-ip-in-apache-from-haproxy
https://httpd.apache.org/docs/2.4/mod/core.html#errorlogformat
Thank you.
Replies have been locked on this page!