anchor.diff:    <%-
       sites = {}
       http_services.each do |service|
  +      id       = "#{service[:name]}_#{service[:port]}"
         name     = service[:name]
         balancer = service[:balancer]
         vhost    = balancer['vhost'] || 'default'
  
positive.code:       proxy_set_header X-NginX-Proxy true;
        proxy_pass http://<%= spec['backend'] %>;
        <%- if balancer['allowed'] -%>
        <%- (balancer['allowed'] || []).each do |x| -%>
        allow <%= x %>;
        <%- end -%>
        deny all;
        <%- end -%>
      }
        <%- end -%>
  
negative.code:       proxy_set_header X-NginX-Proxy true;
        proxy_pass http://<%= pool %>;
        <%- if balancer['allowed'] -%>
        <%- if has_proto_protocol? -%>
        if ( $allowed_<%= id %> = "deny" ) { return 403; }
        <%- else -%>
        <%- (balancer['allowed'] || []).each do |x| -%>
        allow <%= x %>;
        <%- end -%>
        deny all;
        <%- end -%>
        <%- end -%>
      }
      <%- end -%>
    }
    <%- end # end of the service iteration -%>
  
    #
  