diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-02-07 11:51:52 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-02-07 19:08:04 +0300 |
commit | 91eeeea06c24797b0b0c82621fe23934df2151df (patch) | |
tree | 0ca69d241fa22c9ad91f74437ab6f5a3e086232c /etc/nextcloudpi-config.d | |
parent | d7f253e25cb9fc3c8555075d37c1f807fddd2a03 (diff) |
modsecurity: turn off logging, its too spammy for ramlogsv0.46.2
Diffstat (limited to 'etc/nextcloudpi-config.d')
-rw-r--r-- | etc/nextcloudpi-config.d/modsecurity.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/nextcloudpi-config.d/modsecurity.sh b/etc/nextcloudpi-config.d/modsecurity.sh index ec86bc38..9047e894 100644 --- a/etc/nextcloudpi-config.d/modsecurity.sh +++ b/etc/nextcloudpi-config.d/modsecurity.sh @@ -42,6 +42,9 @@ EOF sed -i 's|SecDataDir .*|SecDataDir /var/cache/modsecurity/|' /etc/modsecurity/modsecurity.conf sed -i 's|^SecRequestBodyLimit .*|#SecRequestBodyLimit 13107200|' /etc/modsecurity/modsecurity.conf + # turn modsecurity logs off, too spammy + sed -i 's|SecAuditEngine .*|SecAuditEngine Off|' /etc/modsecurity/modsecurity.conf + cat >> /etc/apache2/apache2.conf <<EOF <IfModule mod_security2.c> SecServerSignature " " |