diff --git a/www/nginx/src/opnsense/service/templates/OPNsense/Nginx/location.conf b/www/nginx/src/opnsense/service/templates/OPNsense/Nginx/location.conf index 841da9330..197cde8ce 100644 --- a/www/nginx/src/opnsense/service/templates/OPNsense/Nginx/location.conf +++ b/www/nginx/src/opnsense/service/templates/OPNsense/Nginx/location.conf @@ -43,7 +43,7 @@ location {{ location.matchtype }} {{ location.urlpattern }} { } {% endif %} {% if location.ip_acl is defined %} -{% set ip_acl = server.ip_acl %} +{% set ip_acl = location.ip_acl %} {% include "OPNsense/Nginx/ipacl.conf" %} {% endif %} {% if location.root is defined %}