I have ghost running with nginx on my droplet. I would like to add Piwik for analytics. I believe I need to add another server block with the document root pointing towards the location of my Piwik directory. I’ve tried this but when browsing to mydropletip/piwik I still get an error from ghost. Has anyone tried this before or at least know how to add other applications on the same server as your ghost installation?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi,
I guess you installed Ghost in your root domain (i.e. domain.com), the easy alternative is to install Piwik in a subdomain (i.e. piwik.domain.com).
Another option is to install Ghost in a subdomain (i.e. ghost.domain.com) or in subdirectory (i.e. domain.com/ghost).
If you really want to have both as subdirectories of your root domain (i.e. domain.com/ghost and domain.com/piwik) you need to configure the proxy_pass option in Nginx.
Now, this is not really an answer to your question, but I’m monitoring my Ghost blog with Piwik via Sandstorm [0], so in this way you don’t waste your VPS resources and you get your Piwik analytics for free.
[0] https://blog.fcestrada.com/add-piwik-on-sandstorm-to-ghost/
Best Regards,
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.