Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Apache reverse proxy location syntax maybe leads to errors  #4841

@dev4223

Description

@dev4223

Description

I have a matrix synapse and mxisd installation on debian stretch working.
Only thing is, that I can't validate any email address. Email is sent but after clicking on the link i get the backend page with this message:

´´´
{"errcode":"M_NO_VALID_SESSION","error":"No valid session was found matching that sid and client secret","success":false}
´´´

Please read here kamax-matrix/mxisd#141

Version information

Debian Stretch

I've installed the lates matrix synapse package for debian stretch:
Package: matrix-synapse-py3
Version: 0.99.2+stretch1

and installed the latest stable mxisd package for stretch:
mxisd_1.3.1_all.deb

Solution

@pexus in kamax-matrix/mxisd#142 brought me to the Idea:
My apache config was

ProxyPreserveHost On
ProxyPass /_matrix/identity http://127.0.0.1:8090/_matrix/identity
ProxyPassReverse /_matrix/identity http://127.0.0.1:8090/_matrix/identity
<Location /_matrix>
  ProxyPass http://127.0.0.1:8008/_matrix nocanon
  ProxyPassReverse http://127.0.0.1:8008/_matrix
</Location>

Now I have changed it to

ProxyPreserveHost On
ProxyPass /_matrix/identity http://127.0.0.1:8090/_matrix/identity
ProxyPassReverse /_matrix/identity http://127.0.0.1:8090/_matrix/identity
ProxyPass /_matrix http://127.0.0.1:8008/_matrix nocanon
ProxyPassReverse /_matrix http://127.0.0.1:8008/_matrix

This solved the problem. This Location-syntax for synapse comes frome here https://github.com/matrix-org/synapse/blob/master/docs/reverse_proxy.rst
And after the description here https://httpd.apache.org/docs/2.4/mod/core.html#location it seems not a good idea to do so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Docsthings relating to the documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions