I have Varnish (manually installed and configured) running in front of Apache – works like a charm. The only issue I'm having now is that the X-Forwarded-For header set by Varnish (yes, it's working) is not being correctly picked up by Apache, so the IP of my server shows up in all log files.
I have tried following the steps outlined in this thread to modify the log format used for vhosts, but to no avail: mod_remoteip and correct ip in vhost access logs
I would love to hear from anybody who has a similar setup, and who managed to get this very important part right.
EDIT: I should probably clarify that I am running Cloudlinux 7 with cPanel 11.56.0 (build 24)
I have tried following the steps outlined in this thread to modify the log format used for vhosts, but to no avail: mod_remoteip and correct ip in vhost access logs
I would love to hear from anybody who has a similar setup, and who managed to get this very important part right.
EDIT: I should probably clarify that I am running Cloudlinux 7 with cPanel 11.56.0 (build 24)
Last edited: