diff --git a/templates/etc/nginx/sites-available/vhost.j2 b/templates/etc/nginx/sites-available/vhost.j2 index 6bfa6f4..5d0f263 100644 --- a/templates/etc/nginx/sites-available/vhost.j2 +++ b/templates/etc/nginx/sites-available/vhost.j2 @@ -40,7 +40,7 @@ server { {% if server.custom_options is defined and server.custom_options %} {% for inline_option in server.custom_options %} - {{ inline_option }}; + {{ inline_option }}{{ "" if inline_option.startswith("if ") else ";" }} {% endfor %} {% endif %}