diff --git a/templates/etc/nginx/sites-available/vhost.j2 b/templates/etc/nginx/sites-available/vhost.j2 index 31ca8c2..6b09029 100644 --- a/templates/etc/nginx/sites-available/vhost.j2 +++ b/templates/etc/nginx/sites-available/vhost.j2 @@ -89,7 +89,6 @@ server { } {% endfor %} - {% endif %} {% for error_location in nginx_error_location %} location {{ error_location.match }} { {% if error_location.root is defined and error_location.root %} @@ -107,5 +106,6 @@ server { {% endif %} } {% endfor %} + {% endif %} } {% endfor %}