diff --git a/templates/etc/nginx/sites-available/vhost.j2 b/templates/etc/nginx/sites-available/vhost.j2 index 6472210..605dd3e 100644 --- a/templates/etc/nginx/sites-available/vhost.j2 +++ b/templates/etc/nginx/sites-available/vhost.j2 @@ -94,9 +94,7 @@ server { {% endif %} {% if location.proxy_ignore_headers is defined and location.proxy_ignore_headers %} - {% for ignore in location.proxy_ignore_headers %} - proxy_ignore_header {{ ignore }}; - {% endfor %} + proxy_ignore_headers {{ ignore | join(" ") }}; {% endif %} {% endif %} {% if location.custom_options is defined and location.custom_options %}