Hi Thierry, Le Samedi 6 Mars 2010 11:02:40, thierry stephan a écrit : > Hello, > > Little stupid question, I just install Haproxy on my FreebSD 8 and it is > working well with Apache 22 ... > But now, all of my http logs are coming from my local server, not > anymore from external public IP :) > My server is listening on 8080 and Haproxy on port 80 ... > > How to resolve this problem ??
For that, I use mod_rpaf on the apache backends (assuming option forwardfor is enabled in the haproxy configuration) : http://stderr.net/apache/rpaf/ You can also have a look on the current apache development branch, with the module mod_remoteip : http://httpd.apache.org/docs/trunk/mod/mod_remoteip.html -- Cyril Bonté