mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-06 00:28:05 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
15
roles/httpd_front/templates/common_mod_security2.inc.j2
Normal file
15
roles/httpd_front/templates/common_mod_security2.inc.j2
Normal file
@@ -0,0 +1,15 @@
|
||||
# {{ ansible_managed }}
|
||||
{% if httpd_mod_security | default(True) %}
|
||||
Include modsecurity.d/*.conf
|
||||
Include modsecurity.d/activated_rules/*.conf
|
||||
{% if httpd_mod_security | default(True) == 'audit' %}
|
||||
SecRuleEngine DetectionOnly
|
||||
{% elif httpd_mod_security | default(True) == True %}
|
||||
SecRuleEngine On
|
||||
{% else %}
|
||||
SecRuleEngine Off
|
||||
{% endif %}
|
||||
{% for id in httpd_mod_security_disabled_rules | default(['960015', '981203']) %}
|
||||
SecRuleRemoveById {{ id }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
Reference in New Issue
Block a user