File matrix-synapse.apache-vhost of Package matrix-synapse
#
# Uncomment the line.
# Change matrix.example.com to really name.
# Change location of Certification.
#
# You will also want to set bind_addresses: ['127.0.0.1']
# and x_forwarded: true for port 8008 in homeserver.yaml
# to ensure that client IP addresses are recorded correctly.
#
# Having done so, you can then use https://matrix.example.com
# (instead of https://matrix.example.com:8448)
# as the Custom server when Connecting to Synapse from a client.
<IfDefine SSL>
<IfDefine !NOSSL>
#<VirtualHost *:443>
#
# SSLEngine On
# ServerName matrix.example.com
# DocumentRoot "/srv/www/vhosts/matrix"
#
# ErrorLog /var/log/apache2/matrix.example.com-error_log
# TransferLog /var/log/apache2/matrix.example.com-access_log
#
# SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
#
# SSLCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA256
# SSLHonorCipherOrder on
#
# SSLCertificateFile /etc/letsencrypt/live/matrix.example.com/cert.pem
# SSLCertificateKeyFile /etc/letsencrypt/live/matrix.example.com/privkey.pem
# SSLCertificateChainFile /etc/letsencrypt/live/matrix.example.com/chain.pem
#
# RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
# AllowEncodedSlashes NoDecode
#
# <Location /_matrix>
# ForceType application/json
#
# This is only if you use mxisd identity server.
# ProxyPass /identity http://127.0.0.1:8090/_matrix/identity nocanon
# ProxyPassReverse /identity http://127.0.0.1:8090/_matrix/identity
#
# This must uncomment!
# ProxyPass http://127.0.0.1:8008/_matrix nocanon
# ProxyPassReverse http://127.0.0.1:8008/_matrix
#
# </Location>
#
# <Location /_synapse/client>
# ForceType application/json
#
# This must uncomment!
# ProxyPass http://127.0.0.1:8008/_synapse/client nocanon
# ProxyPassReverse http://127.0.0.1:8008/_synapse/client
#
# </Location>
#
# <Location /.well-known/matrix>
# ForceType application/json
# Header set Access-Control-Allow-Origin "*"
# </Location>
#
# <Directory "/srv/www/vhosts/matrix">
# Options Indexes
# AllowOverride None
# Require all granted
# </Directory>
#
#</VirtualHost>
#
#
#
#<VirtualHost *:8448>
# SSLEngine On
# ServerName example.com
# DocumentRoot "/srv/www/vhosts/matrix"
#
# ErrorLog /var/log/apache2/matrix.example.com-error_log
# TransferLog /var/log/apache2/matrix.example.com-access_log
#
# SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
#
# SSLCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA256
# SSLHonorCipherOrder on
#
# SSLCertificateFile /etc/letsencrypt/live/matrix.example.com/cert.pem
# SSLCertificateKeyFile /etc/letsencrypt/live/matrix.example.com/privkey.pem
# SSLCertificateChainFile /etc/letsencrypt/live/matrix.example.com/chain.pem
#
# RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
# AllowEncodedSlashes NoDecode
#
# <Location /_matrix>
# ForceType application/json
# ProxyPass http://127.0.0.1:8008/_matrix nocanon
# ProxyPassReverse http://127.0.0.1:8008/_matrix
# </Location>
#
# <Location /.well-known/matrix>
# ForceType application/json
# Header set Access-Control-Allow-Origin "*"
# </Location>
#
# <Directory "/srv/www/vhosts/matrix">
# Options Indexes
# AllowOverride None
# Require all granted
# </Directory>
#
#</VirtualHost>
</IfDefine>
</IfDefine>