From 4b8b2e171c86d754d2095d357dbd72a81c60840f Mon Sep 17 00:00:00 2001 From: bn4t Date: Wed, 21 Aug 2019 15:17:33 +0000 Subject: [PATCH] matrix-synapse: Use recommended reverse proxy configuration matrix-synapse reverse proxy configuration for Apache according to: https://github.com/matrix-org/synapse/blob/master/docs/reverse_proxy.rst Fixes #1533. [sunil@medhas.org Fix closing location directive] Tested-by: Sunil Mohan Adapa Reviewed-by: Sunil Mohan Adapa --- .../etc/apache2/conf-available/matrix-synapse-plinth.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plinth/modules/matrixsynapse/data/etc/apache2/conf-available/matrix-synapse-plinth.conf b/plinth/modules/matrixsynapse/data/etc/apache2/conf-available/matrix-synapse-plinth.conf index 64217ece9..292ef44ce 100644 --- a/plinth/modules/matrixsynapse/data/etc/apache2/conf-available/matrix-synapse-plinth.conf +++ b/plinth/modules/matrixsynapse/data/etc/apache2/conf-available/matrix-synapse-plinth.conf @@ -5,4 +5,8 @@ ## 8448. Further, federation requires same TLS public key to be provided to ## Apache and Matrix Synapse server. ## -ProxyPass /_matrix http://localhost:8008/_matrix + + AllowEncodedSlashes NoDecode + ProxyPass /_matrix http://localhost:8008/_matrix nocanon + ProxyPassReverse /_matrix http://localhost:8008/_matrix +