Skip to content
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

Matomo behind a Reverse Proxy Server #18194

Open
comp-lsa opened this issue Oct 21, 2021 · 0 comments
Open

Matomo behind a Reverse Proxy Server #18194

comp-lsa opened this issue Oct 21, 2021 · 0 comments
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced.

Comments

@comp-lsa
Copy link

Hello,

We have our matomo instance running behind a Reverse Proxy Server.
We don't manage the Reverse Proxy Server but we have received confirmation from the Administrator that the mapping is a standard mapping:

  • with a x.forwarded-host header activated (+other header are by default activated through the mapping environment)
  • page rewrite activated
    The mapping is:
    https://OurReverseProxyServer/OurAppContextPath> --> http://OurMatomoServer:8080
    The problem we have is the following:
    We connect to matomo with the URL https://OurReverseProxyServer/OurAppContextPath/index.php
    The login page id displayed
    We enter the login and password
    We have the message:
    Access Denied (policy_denied)
    Your system policy has denied access to the requested URL.
    For assistance, contact your network support team.

    The URL at that moment is: "https://OurReverseProxyServer/index.php" without the ContextPath
    We click on the back arrow of the browser and we are connected to the dashboard with the correct URL ! which is a workaround because finally we can connect and matomo seems to work, but we would like to solve this.
    This behavior is the same with all the browsers.
    The PRM administrator thinks the problem is at application level.
    We suppose we need to specify the ContextPath somewhere in the application server.
    Matomo is running on Windows 2012 server (test) and Windows 2016 (prod) servers with IIS, thus probably we need to specify this at IIS level but we don't know how ...
    Could you please help us with this ?
    The Matomo version is : 4.4.1
    PHP version: 7.3.6
    OS Windows 2012 and Windows 2016 server with IIS
    Thanks for your help.
@comp-lsa comp-lsa added the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced.
Projects
None yet
Development

No branches or pull requests

2 participants