Piwik and webserver behind an apache reverse proxy


I am having issues getting the client IP, i keep getting the the apache reverse proxy IPs.
My setup is:

Client --> Apache Reverse Proxy --> Apache Webserver --> Piwik

I have tried placing the following settings in the config.php and there was absolutely no change in behaviour:

proxy_client_headers[] = HTTP_X_FORWARDED_FOR
proxy_host_headers[] = HTTP_X_FORWARDED_HOST
proxy_host_ips[] = XXX.XXX.XXX.XXX

I have also tried using mod_rpaf on the proxy level and still no go.

Any help will be appreciated.

Thank you in advance.

Its work but breck. I too dont know yet whay.