Update README.md

add modsecurity for apache
This commit is contained in:
2803 MEDIA 2024-09-25 11:57:15 +02:00 committed by GitHub
parent c85633423b
commit fc3da2d9b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,7 +46,7 @@ $ sudo systemctl restart apache2
$ sudo certbot --apache $ sudo certbot --apache
``` ```
#### Apache2 Modsecurity #### Apache2 Modsecurity
Modsecurity block with CRS the "plain/text" used by Plausible and ".com" in headers so if you use Modsecurity as a Waff to your Apache2 configuration you will need to add some custom rules in order to not block Plausible. Here are some rules, feel free to adapt to your specific case: Modsecurity block with CRS the `plain/text` used by Plausible and `.com` in headers so if you use Modsecurity as a Waff to your Apache2 configuration you will need to add some custom rules in order to not block Plausible. Here are some rules, feel free to adapt to your specific case:
```shell ```shell
# Autoriser text/plain pour la route /api/event # Autoriser text/plain pour la route /api/event