www/nginx: fix rule 19 issue

root cause: even if MainRule is successfully parsed, it is currently
not supported. So it must be moved to a basic rule.
This commit is contained in:
Fabian Franz
2018-10-14 12:04:49 +02:00
parent ca844befe7
commit 488d409d8a
2 changed files with 1 additions and 1 deletions
@@ -13,6 +13,7 @@ location {{ location.matchtype }} {{ location.urlpattern }} {
LibInjectionXss;
CheckRule "$LIBINJECTION_XSS >= {{ location.xss_block_score }}" BLOCK;
{% endif %}
BasicRule wl:19;
{% set added_policies = [] %}
{% if location.custom_policy is defined %}
{% for custom_policy_uuid in location.custom_policy.split(',') %}
@@ -1,4 +1,3 @@
MainRule wl:19;
{% set naxsi_ruletype = 'main' %}
{% set main_policies = [] %}
{% set main_rules = [] %}