2020-06-21 10:46:49 -05:00
|
|
|
# Configuration for {{ matrix_url }}
|
|
|
|
# vim:ft=apache:
|
|
|
|
|
|
|
|
# Accept connections from non-SNI clients
|
|
|
|
SSLStrictSNIVHostCheck off
|
|
|
|
# Need this for SSL proxying, apparently
|
|
|
|
SSLProxyEngine on
|
|
|
|
|
|
|
|
# Website configuration
|
|
|
|
<VirtualHost *:80>
|
|
|
|
ServerName {{ matrix_url }}
|
|
|
|
Redirect permanent / https://{{ matrix_url }}
|
|
|
|
</VirtualHost>
|
2020-06-22 05:34:01 -05:00
|
|
|
<VirtualHost *:443 *:8448>
|
2020-06-21 10:46:49 -05:00
|
|
|
SSLEngine on
|
|
|
|
SSLCertificateFile /etc/pki/cert/crt/{{ matrix_url }}.crt
|
|
|
|
SSLCertificateKeyFile /etc/pki/cert/private/{{ matrix_url }}.key
|
|
|
|
SSLCertificateChainFile /etc/pki/cert/crt/{{ matrix_url }}-fullchain.crt
|
|
|
|
SSLProtocol {{ ssl_protocol }}
|
|
|
|
SSLCipherSuite {{ ssl_cipher_suite }}
|
|
|
|
ServerName {{ matrix_url }}
|
|
|
|
DocumentRoot {{ matrix_webroot }}
|
|
|
|
<Directory "{{ matrix_webroot }}">
|
|
|
|
Require all granted
|
|
|
|
AllowOverride All
|
|
|
|
Options MultiViews FollowSymlinks
|
|
|
|
</Directory>
|
2020-06-22 05:34:01 -05:00
|
|
|
AllowEncodedSlashes NoDecode
|
|
|
|
ProxyPass /_matrix http://127.0.0.1:8008/ nocanon retry=1
|
|
|
|
ProxyPassReverse /_matrix https://127.0.0.1:8008/
|
2020-06-21 10:46:49 -05:00
|
|
|
RequestHeader set X_FORWARDED_PROTO 'https'
|
|
|
|
RequestHeader set X-Forwarded-Ssl on
|
|
|
|
</VirtualHost>
|