Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit a4e63e5

Browse files
authored
Add note to reverse_proxy.md about disabling Apache's mod_security2 (#8375)
This change adds a note and a few lines of configuration settings for Apache users to disable ModSecurity for Synapse's virtual hosts. With ModSecurity enabled and running with its default settings, Matrix clients are unable to send chat messages through the Synapse installation. With this change, ModSecurity can be disabled only for the Synapse virtual hosts.
1 parent 8998217 commit a4e63e5

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

changelog.d/8375.doc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add note to the reverse proxy settings documentation about disabling Apache's mod_security2. Contributed by Julian Fietkau (@jfietkau).

docs/reverse_proxy.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,14 @@ example.com:8448 {
121121

122122
**NOTE**: ensure the `nocanon` options are included.
123123

124+
**NOTE 2**: It appears that Synapse is currently incompatible with the ModSecurity module for Apache (`mod_security2`). 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 `</VirtualHost>` above:
125+
126+
```
127+
<IfModule security2_module>
128+
SecRuleEngine off
129+
</IfModule>
130+
```
131+
124132
### HAProxy
125133

126134
```

0 commit comments

Comments
 (0)