Re: client ip address

From: Rainer Sabelka <>
Date: Fri, 11 Jul 2008 14:35:38 +0200

On Friday 11 July 2008 14:17:16 Johan Duflost wrote:
> I developped a web service that is accessed through haproxy.
> It works but I need to get the client ip at the web service side but
> instead I get the ip of haproxy. Any idea on the way I can solve this
> problem?

Add "option forwardfor" to your configuration. This will add an "X-Forwarded-For" request header which you can use in your backend servers to obtain the original IP-address.

-Rainer Received on 2008/07/11 14:35

This archive was generated by hypermail 2.2.0 : 2008/07/11 14:45 CEST