New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
proxy_uri_header=1 not working #19544
Comments
Hi @NathanC |
I found a workaround. It turns out the issue only appears if I go directly to mysite/matomo, which causes it to redirect to mysite/index.php. If I go to mysite/matomo/index.php then it works properly. My guess is that whatever does the redirect from the web root doesn't respect the |
Our scripts should only try to redirect to |
facing similar issue config,ini.php is perfect . |
@NathanC are you running Matomo in Docker? With Apache? |
Seeing same behavior when calling I'm using the apache version from bitnami1 Footnotes |
It's also working when calling |
Expected Behavior
Reverse proxying with a path prefix should cause the site to respect when
proxy_uri_header = 1
is set.Current Behavior
my-domain.example.com/matomo
proxies successfully, but immediately gets redirected tomy-domain.example.com/index.php
. The proxy prefix isn't working correctly.I have matomo behind a reverse proxy on the
/matamo
path. I'm using theCaddy
webserver, and I'm setting theX-Forwarded-Uri
header. I've tested with a script, and the header is correctly getting sent during proxying.My
config.ini.php
settings are as follows:From all the guides I've fo
Expected behavior
I would expect
proxy_uri_header = 1
to be respected, and internal links to be prefixed by/matomo
by the Matomo.My Environment
Matomo version: 4.10.1
MySQL version: 10.8.3-MariaDB-1:10.8.3+maria~jammy
PHP version: 8.0.21
tl;dr;
proxy_uri_header = 1
doesn't seem to be working.Any idea what's going on? Is there some way I can confirm that X-Forwarded-Uri is reaching the proper parser in Matomo? Anything else I should try?
The text was updated successfully, but these errors were encountered: