Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
fuss:piwik [2017/07/14 19:34] – created officefuss:piwik [2022/04/19 08:28] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Forwarding Correct IP from Varnish ======
  
 +To forward the correct IP from Varnish to piwik, make sure that ''req.http.X-Forwarded-For'' is set to ''client.ip'' in ''vcl_recv'':
 +<code>
 +if (req.http.host == "piwik.domain.com") {
 +        # Set the X-Forwarded-For to the client IP address.
 + set req.http.X-Forwarded-For = client.ip;
 +        # Do not cache.
 + return(pass);
 +}
 +</code>
 +
 +Note that the addition of ''set req.http.X-Forwarded-For = client.ip;'' is not needed if you are using the [[varnish/templates/5/default_configuration|Wizardry and Steamworks Varnish template]].
 +
 +Finally, edit the ''piwik/config/config.ini.php'' file to add:
 +<code>
 +[General]
 +proxy_client_headers[] = "HTTP_X_FORWARDED_FOR"
 +proxy_host_headers[] = "HTTP_X_FORWARDED_FOR"
 +</code>
 + 

fuss/piwik.txt · Last modified: 2022/04/19 08:28 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.