探索,發現,愛好、學習,記錄,分享。
學海無涯,天涯若比鄰,三人行,必有我師。

How to configure Piwik for use with Cloudflare

Piwik works well behind all proxies, load balancers, which are used to make websites faster, secure and more resilient.

If you wish to use Piwik on your server hosted behind Cloudflare, two things are needed:

1) Install an Apache module called mod_cloudflare which allows the real IP addresses of the visitors to populate through to logs, stats etc including Piwik. If you control your own VPS or dedicated Apache web server, see How to install mod_cloudflare.
If you are on shared hosting and don’t control your Apache config, ask your hosting provider to install the mod_cloudflare module. 

If this is not installed you will only see the default IP addresses that belong to Cloudflare in your Piwik visitor logs.

2) In Cloudflare settings, under ‘Performance Settings’, set the ‘Rocket Loader’ option to Manual or Off.

Piwik should then work on your server installed behind Cloudflare proxies. If you have any question, you can get free support in Cloudflare forums or in the Piwik forums.

版權聲明:本文采用知識共享 署名4.0國際許可協議 [BY-NC-SA] 進行授權
轉載事宜:如需轉載需徵得應允,轉載必須注明來源於本站的信息。
文章名称:《How to configure Piwik for use with Cloudflare》
文章链接:https://www.thefreesky.com/blog/25458.html
本站資源僅供個人學習交流,請於下載後24小時內刪除,不允許用於商業用途,否則法律問題自行承擔。

評論 抢沙发