HAProxy community

How to display the IP client on access.log on the apache webserver

Good Morning, here I have a problem.

The IP read on the access.log WebServer Apache when passing through the Haproxy is the IP Private Haproxy.

How do you make the IP read is the IP of the client on access.log (Webserver Apache) ?

Thank you


I think you should have a look at this setting

option forwardfor

You probably need to configure Apache also for this.

PS I am new to haproxy, thus better check this

Thanks for reply, I will check option forwardfor.