diff --git a/templates/server/location_header.erb b/templates/server/location_header.erb index 9e1e5ee1a..25c16fc36 100644 --- a/templates/server/location_header.erb +++ b/templates/server/location_header.erb @@ -78,12 +78,8 @@ <%- end -%> <% end -%> <% if @limit_zone -%> - <%- if @limit_zone.is_a?(Array) then -%> - <%- for lz in @limit_zone -%> + <%- Array(@limit_zone).each do |lz| -%> limit_req zone=<%= lz %>; - <%- end -%> - <%- else -%> - limit_req zone=<%= @limit_zone %>; <%- end -%> <% end -%> <% if @reset_timedout_connection -%>