Hi,

On Mon, Feb 02, Sander Klein wrote:
> On 02.02.2015 12:09, Mathieu Sergent wrote:
> >Hi,
> >
> >I try to set up a load balancing with HAProxy and 3 web servers.
> >I want to receive on my web servers the address' client.
> >I read that it is possible with the option " source ip usesrc  " but
> >you need to be root.
> >If you want to not be root, you have to used  "HAProxy with Tproxy".
> >But Tproxy demand too much system configuration.
> >There is an other solution ?
> >I hope that you have understood my problem.
> >
> >Yours sincerely.
> >
> >Mathieu Sergent
> >
> >PS : Sorry for my English.
> 
> Your English is no problem. ;-)
> 
> You can add an X-Forwarded-For header using haproxy. If you then use
> mod_rpaf for apache or realip on nginx you can easily substitute the
> loadbalancer ip with the ip of the client.

Or if you're running apache 2.4 then it should come with
mod_remoteip: http://httpd.apache.org/docs/current/mod/mod_remoteip.html

And for tomcat there's:
https://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/valves/RemoteIpValve.html

-Jarno

-- 
Jarno Huuskonen

Reply via email to