Fix error when http_demo_conf undefined (#274)
This commit is contained in:
parent
21e03b27dd
commit
f3c8bd2b70
@ -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';
|
||||||
|
Loading…
Reference in New Issue
Block a user