diff --git a/rootfs/etc/nginx/template/nginx.tmpl b/rootfs/etc/nginx/template/nginx.tmpl index ee7ec807e..0a031442c 100644 --- a/rootfs/etc/nginx/template/nginx.tmpl +++ b/rootfs/etc/nginx/template/nginx.tmpl @@ -710,7 +710,7 @@ http { # default server, used for NGINX healthcheck and access to nginx stats server { # Ensure that modsecurity will not run on an internal location as this is not accessible from outside - {{ if $modsecurityEnabled }} + {{ if $all.Cfg.EnableModsecurity }} modsecurity off; {{ end }}