mirror of
https://github.com/element-hq/synapse.git
synced 2026-05-25 14:14:08 +00:00
deploy: ece84f2c45
This commit is contained in:
@@ -222,7 +222,7 @@ to proxied traffic.)</p>
|
||||
<h2 id="reverse-proxy-configuration-examples"><a class="header" href="#reverse-proxy-configuration-examples">Reverse-proxy configuration examples</a></h2>
|
||||
<p><strong>NOTE</strong>: You only need one of these.</p>
|
||||
<h3 id="nginx"><a class="header" href="#nginx">nginx</a></h3>
|
||||
<pre><code>server {
|
||||
<pre><code class="language-nginx">server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
|
||||
@@ -301,7 +301,7 @@ matrix.example.com {
|
||||
}
|
||||
</code></pre>
|
||||
<h3 id="apache"><a class="header" href="#apache">Apache</a></h3>
|
||||
<pre><code><VirtualHost *:443>
|
||||
<pre><code class="language-apache"><VirtualHost *:443>
|
||||
SSLEngine on
|
||||
ServerName matrix.example.com
|
||||
|
||||
@@ -326,7 +326,7 @@ matrix.example.com {
|
||||
</code></pre>
|
||||
<p><strong>NOTE</strong>: ensure the <code>nocanon</code> options are included.</p>
|
||||
<p><strong>NOTE 2</strong>: It appears that Synapse is currently incompatible with the ModSecurity module for Apache (<code>mod_security2</code>). If you need it enabled for other services on your web server, you can disable it for Synapse's two VirtualHosts by including the following lines before each of the two <code></VirtualHost></code> above:</p>
|
||||
<pre><code><IfModule security2_module>
|
||||
<pre><code class="language-apache"><IfModule security2_module>
|
||||
SecRuleEngine off
|
||||
</IfModule>
|
||||
</code></pre>
|
||||
|
||||
Reference in New Issue
Block a user