Merge pull request #4793 from MMeent/patch-2
Fix issue in logic of modsec template
This commit is contained in:
commit
60fc37d0e2
1 changed files with 1 additions and 1 deletions
|
@ -1041,7 +1041,7 @@ stream {
|
||||||
modsecurity_rules '
|
modsecurity_rules '
|
||||||
{{ $location.ModSecurity.Snippet }}
|
{{ $location.ModSecurity.Snippet }}
|
||||||
';
|
';
|
||||||
{{ else if (and ((not $all.Cfg.EnableOWASPCoreRules) $location.ModSecurity.OWASPRules))}}
|
{{ else if (and (not $all.Cfg.EnableOWASPCoreRules) ($location.ModSecurity.OWASPRules))}}
|
||||||
modsecurity_rules_file /etc/nginx/owasp-modsecurity-crs/nginx-modsecurity.conf;
|
modsecurity_rules_file /etc/nginx/owasp-modsecurity-crs/nginx-modsecurity.conf;
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue