Skip to content

Commit

Permalink
Only add modsecurity on if modsecurity is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
medanthelinium committed Jan 11, 2024
1 parent 232da8d commit c79ac18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/include/modsecurity.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
{% if nginx.modsecurity.enabled %}
modsecurity on;
modsecurity_rules_file {{ nginx.prefix.modsecurity.config }}/main.conf;
{% endif %}

0 comments on commit c79ac18

Please sign in to comment.