Our features site is undergoing a refresh! Be sure to explore the revamped site and discover our latest product roadmap launching here on Monday, March 18th.

Enable the apache errorlog to show the real source IP

Eitan Caspi shared this idea 15 months ago
Needs Review

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://dannyda.com/2019/10/11/how-to-add-x-forwarded-for-information-to-apache-web-server-access-log-and-error-log/

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.

Leave a Comment
 
Attach a file