I use clearsilver library to write CGI. And before my Apache, I use Haproxy. I can output the real user ip in the apache log using:
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{X-Forwarded-For}i\"" common
But I nearly test everything, for example: HTTP.XForwardedFor
, HTTP_X_FORWARDED_FOR
and so on to get the real ip from hdf, but none of them seems right. How can I get it? From which key?