diff --git a/rootfs/etc/nginx/template/nginx.tmpl b/rootfs/etc/nginx/template/nginx.tmpl index 9d1a21a3c..0d313816c 100644 --- a/rootfs/etc/nginx/template/nginx.tmpl +++ b/rootfs/etc/nginx/template/nginx.tmpl @@ -711,7 +711,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 }}