I need to forward the real ip of the visitor to Apache Load Balancer. I have done it on Nginx successfully by just adding following two lines:
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for
I also have found above solution (for Nginx) on websites that explain the solution for both Apache and Nginx, but it doesn’t work for Apache. Generally solutions are shared for Apache Servers as a back-end server. However, in my case, Apache is the load balancer. I have also tried mod_rpaf but either it did not work or I couldn’t apply it successfully.