@FredAt wrote:
For a while now I have had the following setup
A dedicated server running Piwik (call it ServerA) with a website added, www.example.com, that runs on Server
ServerB is an Nginx server. Webpages on have their Piwik tracking code taking them to https://www.example.com/piwik
Nginx has been configured to reverse proxy the ServerA piwik installation. I mean
location ^~ /piwik/ {
proxy_pass https://IP-of-serverA/piwik/;This has all been working perfectly. However, I have now got Piwik setup on another server, ServerC, to service a website - call it www.example.net - running on the same server. In order to minimize effort and rationalize server usage I decided to do the following
- switch off ServerA,
- change the /piwik proxy pass configuration on ServerB to point to ServerC/piwik/
- Reload the Nginx configuration on Server B
- Edit /piwik/config/config.ini.php on ServerC so trusted_hosts[] now has references to ServerC AND ServerB
- Create a second website to monitor on the Piwik installation on ServerC
To check that it was all working property I went and visited https://www.example.com/piwik and was taken smoothly to the Piwik installation on Server C. However, when I visit web pages on ServerB I find that my Piwik log on ServerC example.com remains stubbornly empty. Am I missing something here? I would much appreciate any help
Posts: 2
Participants: 2