我正在使用Piwik的副本,这非常好。
对于偏执狂的额外安全性,我想将 Piwik 的后端放在一个受 Apache 基本身份验证保护的文件夹中,并且其路径被隐藏以防窥探。
http://example.com/protected/piwik
^----------------- .htpasswd protected
但是,现在跟踪代码当然不再起作用了!
var pkBaseURL = (("https:" == document.location.protocol) ?
"https://example.com/protected/piwik/" : "example.com/protected/piwik/");
有没有一种常见的方法可以将 Piwik 后端放置在单独的受保护目录中,但允许跟踪器照常工作?