ServerName yourdomain.tld
AliasPreservePath On
Alias /.well-known/acme-challenge /var/www/dehydrated
Options None
AllowOverride None
Require all granted
ProxyPreserveHost on
ProxyPass http://localhost:8008/_matrix
# Follow instructions for setting up dehydrated ssl certificates to have
# these SSL parameters working.
SSLEngine on
SSLCertificateFile "/etc/dehydrated/certs/yourdomain.tld/cert.pem"
SSLCertificateKeyFile "/etc/dehydrated/certs/yourdomain.tld/privkey.pem"
SSLCertificateChainFile "/etc/dehydrated/certs/yourdomain.tld/fullchain.pem"
# For delegation to another domain i.e. host your matrix server under another
# domain, place these files in the well-known directory of your root domain.
# Then set the '' under the virtual host of that domain.
#
# - Move 'well-known-client.json' to '/.well-known/matrix/client'.
# - Move 'well-known-server.json' to '/.well-known/matrix/server'.
#