Enable mod_remoteip for loadbalancer

JelleG

Verified User
Joined
Jun 3, 2015
Messages
57
Hi,

I want to use the X-Forwarded-For for a loadbalancer.
There I used the following option:
https://www.directadmin.com/features.php?id=1825

But it still does not seem to work well.
The REMOTE_ADDR is still showing the IP of the loadbalancer.

How can I use the X-Forwarded-For for my DA Apache server?
 
Last edited:
Hello,

The post http://forum.directadmin.com/showthread.php?t=49641&p=255474#post255474 shows how to configure Apache to detect a real client's IP in front of proxy. It does not really matter which reverse proxy you use: nginx, squid, or load balancer.

One thing though Apache 2.4 comes with mod_remoteip and you don't need to use mod_rpaf.

And the feature https://www.directadmin.com/features.php?id=1825 is for Directadmin only (not apache) behind a load balancer.

Thanks for your reply and explanation. Was easily solved by adding the required details to the httpd.conf file.
 
Back
Top