matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.81k stars 2.64k forks source link

Matomo issues when installed in a subpath #12562

Open defrox opened 6 years ago

defrox commented 6 years ago

I am experiencing issues after installing matomo in a subpath. I am running matomo 3.3.0 behind a reverse proxy and I can access the site and most of it works just fine except for some images, such as default and custom logos (not adding the subpath to the src url) and redirecting to root domain after successful login or authentication with apereo CAS SSO. I open this issue as required in #7898

sgiehl commented 6 years ago

Could you explain your problems a bit more detailed? Is "only" the subpath missing in the image urls? Or anything else? Which OS are you running Matomo on? which PHP version are you using?

mattab commented 6 years ago

If Matomo is behind a reverse proxy and installed in a sub-path

please check this faq: https://matomo.org/faq/how-to-install/faq_98/ (second section)

Meowzz95 commented 4 years ago

@mattab Followed that faq and still have the same issues as OP mentioned, eg: logo not loaded, generated script path wrong

Findus23 commented 4 years ago

See also https://github.com/matomo-org/matomo/issues/12623

bennesp commented 1 year ago

I had the same issue of @defrox , and stripping the prefix path (with rewrite in nginx, or stripPrefix middleware with traefik) fixed both login and logo issues.

Just be sure to navigate to /yourSubPath/ with the trailing slash