diff --git a/rootfs/etc/nginx/lua/balancer.lua b/rootfs/etc/nginx/lua/balancer.lua index 00104c89d7..11032c2efd 100644 --- a/rootfs/etc/nginx/lua/balancer.lua +++ b/rootfs/etc/nginx/lua/balancer.lua @@ -277,6 +277,11 @@ local function get_balancer() local backend_name = ngx.var.proxy_upstream_name + if backend_name == '-' then + ngx.status = ngx.HTTP_FORBIDDEN + return ngx.exit(ngx.status) + end + local balancer = balancers[backend_name] if not balancer then return nil