@jwhitmore wrote:
I'm running a personal blog, call it my-blog and I decided that I'd like to look at some analytics so I'd play with piwik. As I don't want the expense of running it on a new server, I decided that I'd just run it on the server which is serving the blog. I mean it's not like my server is busy and Nginx can cope with different domains and the like.
So I decided that I'd serve piwik from my-blog:81 and track visits to my-blog, which is on port 80. In my head that doesn't seem to present any problems. And on nginx access log when I point the browser at the blog site on port 80 I can see access to the piwik install. However when I go and look at the piwik install it says that there's no data?
Is Piwik confused by port numbers or am I?
nginx access is giving me:
"GET /piwik.php?action_name=-%20my-blog&idsite=1&rec=1&r=067924&h=10&m=32&s=25&url=http%3A%2F%2Fwww.my-blog.com%2F&id=468bda8359ef5353&idts=1474824975&idvc=2&idn=0&refts=0&viewts=1474881249&send_image=1&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=1&java=1&gears=0&ag=0&cookie=1&res=1366x768>_ms=829 HTTP/1.1" 200 54 "http://www.my-blog.com/" "Mozilla/5.0 (X11; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0"
So the script is in the page and working. So what is the error here is it my configuration of trusted hosts or something?
trusted_hosts[] = "www.my-blog.com:81",
Posts: 6
Participants: 2