From 5624967fd94f1130099c07f919d0c160497e8f15 Mon Sep 17 00:00:00 2001 From: Salt Date: Fri, 26 Jun 2020 11:24:57 -0500 Subject: [PATCH] Alias Matrix vhost to server name Turns out Matrix actually sends the delegated host in the Host: field, which is probably why this fails Interdasting https://matrix.org/docs/spec/server_server/latest#resolving-server-names --- roles/matrix/templates/apache2-vhost-ssl.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/matrix/templates/apache2-vhost-ssl.conf b/roles/matrix/templates/apache2-vhost-ssl.conf index d98d94c..145d903 100644 --- a/roles/matrix/templates/apache2-vhost-ssl.conf +++ b/roles/matrix/templates/apache2-vhost-ssl.conf @@ -19,6 +19,7 @@ SSLProxyEngine on SSLProtocol {{ ssl_protocol }} SSLCipherSuite {{ ssl_cipher_suite }} ServerName {{ matrix_url }} + ServerAlias {{ matrix_server_name }} DocumentRoot {{ matrix_webroot }} Require all granted