From 1a9aee36e6abc578b8674899c260ab5f06e5970e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Ta=C3=AFeb?= Date: Fri, 3 Feb 2023 23:12:07 +0100 Subject: [PATCH] Try to add custom sec rules Try to add another sec rules Try to fix disabling sec rules Try to fix disabling sec rules Try to fix disabling sec rules Try to fix disabling sec rules --- my_security_rules.conf | 1 + servers.conf.erb | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 my_security_rules.conf diff --git a/my_security_rules.conf b/my_security_rules.conf new file mode 100644 index 000000000..1e3cc57d2 --- /dev/null +++ b/my_security_rules.conf @@ -0,0 +1 @@ +SecRuleRemoveById 942190 diff --git a/servers.conf.erb b/servers.conf.erb index 1321a13f9..eebf492d3 100644 --- a/servers.conf.erb +++ b/servers.conf.erb @@ -29,6 +29,8 @@ server { add_header Cache-Control $cache_control; location / { + modsecurity on; + modsecurity_rules_file /app/my_security_rules.conf; try_files $uri.html $uri $uri/ /index.html; }