Skip to content

Commit 79726d2

Browse files
authored
fix: add missing example on enabling plugins per domain (#288)
* fix: add missing example on enabling plugins per domain * update git submodule
1 parent d00bd7c commit 79726d2

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

content/2-how-crs-works/2-3-false-positives-and-tuning.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,16 @@ If running multiple web applications, it is highly recommended to enable a rule
386386

387387
```apache
388388
SecRule REQUEST_URI "@beginsWith /wordpress/" setvar:tx.crs_exclusions_wordpress=1...
389+
390+
Or if CRS is running on an reverse-proxy with multiple apps, you can enable plugins per domain using either [SecWebAppID](https://github.com/owasp-modsecurity/ModSecurity/wiki/Reference-Manual-(v2.x)#user-content-SecWebAppId) (Unsupported on Coraza):
391+
```apache
392+
SecRule WebAppID "@streq wordpress" setvar:tx.crs_exclusions_wordpress=1...
393+
```
394+
395+
or the Host header:
396+
```apache
397+
SecRule REQUEST_HEADERS:Host "@streq wordpress.example.com" setvar:tx.crs_exclusions_wordpress=1...
398+
389399
```
390400
{{% /notice %}}
391401

0 commit comments

Comments
 (0)