Ip 0.0.0.0

Hello everyone,

Sorry if this issue is in another topic but I didn’t found feasible solutions (or I used bad keyword;))

I use version 1.2 of Piwik
The web server is Apache 2, I use a reverse-proxy (Varnish) but this does not pose a problem to retrieve the actual IP address of the visitor (see here: http://monit-web.com/phpinfos.php The “REMOTE_ADDR” and “HTTP_X_FORWARDED_FOR” contains good ips)

But all visitors are registered under the ip 0.0.0.0 and it does not correctly calculate the number of visitors.

I modified the file config.ini.php, this:
; Proxy_client_headers [] = "HTTP_X_FORWARDED_FOR"
proxy_client_headers [] = “REMOTE_ADDR”

And since then, although I get the real ip of the visitor. But I do not know if I did well. And the number of visitors does not move, despite this change.

Thank you for your answers,
Cordially
Remi

This happens only if i choose in the panel, the period “month”. If I choose “Week” or “Day”, the statistics are correct :wink:
If you need screenshots …

This is not an issue with your proxy, but the bug: Period reports must always or never include today's statistics · Issue #5793 · matomo-org/matomo · GitHub

Ok! thank you for your reply :wink: