generic-smartgears-virtualhost: Fix a wrong if statement.

This commit is contained in:
Andrea Dell'Amico 2017-11-23 12:50:33 +01:00
parent f3b2334f03
commit 4b798d98e1
1 changed files with 0 additions and 4 deletions

View File

@ -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 %}