From 4b798d98e1e38caba527df6bcd7cd074ffd7c3e6 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 23 Nov 2017 12:50:33 +0100 Subject: [PATCH] generic-smartgears-virtualhost: Fix a wrong if statement. --- .../templates/generic-smartgears-virtualhost.j2 | 4 ---- 1 file changed, 4 deletions(-) diff --git a/smartgears/smartgears-nginx-frontend/templates/generic-smartgears-virtualhost.j2 b/smartgears/smartgears-nginx-frontend/templates/generic-smartgears-virtualhost.j2 index 9774db37..787a7b65 100644 --- a/smartgears/smartgears-nginx-frontend/templates/generic-smartgears-virtualhost.j2 +++ b/smartgears/smartgears-nginx-frontend/templates/generic-smartgears-virtualhost.j2 @@ -70,7 +70,6 @@ server { {% if context != '' %} location /{{ context }} { {% if varnish_install is defined and varnish_install %} - {% if varnish_listen_port is defined %} {% if smartgears_nginx_cors_enabled %} include /etc/nginx/snippets/nginx-cors.conf; {% if nginx_cors_extended_rules %} @@ -93,7 +92,6 @@ server { proxy_pass http://127.0.0.1:{{ item.http_port }}/{{ context }}; {% endif %} {% endif %} - {% endif %} } {% endif %} {% endif %} @@ -214,7 +212,6 @@ server { {% if context != '' %} location /{{ context }} { {% if varnish_install is defined and varnish_install %} - {% if varnish_listen_port is defined %} {% if smartgears_nginx_cors_enabled %} include /etc/nginx/snippets/nginx-cors.conf; {% if nginx_cors_extended_rules %} @@ -237,7 +234,6 @@ server { proxy_pass http://127.0.0.1:{{ item.http_port }}/{{ context }}; {% endif %} {% endif %} - {% endif %} } {% endif %} {% endif %}