Fix error when http_demo_conf undefined (#274)

This commit is contained in:
Marco Tizzoni 2020-06-29 15:56:45 +02:00 committed by GitHub
parent 21e03b27dd
commit f3c8bd2b70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -454,7 +454,7 @@ server {
} }
{% endfor %} {% endfor %}
{% if item.value.servers[server].web_server.http_demo_conf %} {% if item.value.servers[server].web_server.http_demo_conf is defined and item.value.servers[server].web_server.http_demo_conf %}
sub_filter_once off; sub_filter_once off;
sub_filter 'server_hostname' '$hostname'; sub_filter 'server_hostname' '$hostname';
sub_filter 'server_address' '$server_addr:$server_port'; sub_filter 'server_address' '$server_addr:$server_port';