Fix the check on nginx_proxy_define_header_host.
This commit is contained in:
parent
c301a2b1a1
commit
22aa4d1430
|
@ -3,7 +3,7 @@
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Connection "";
|
proxy_set_header Connection "";
|
||||||
{% if haproxy_ips is defined %}
|
{% if haproxy_ips is defined %}
|
||||||
{% if not nginx_proxy_define_header_host %}
|
{% if nginx_proxy_define_header_host %}
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if nginx_behind_haproxy_settings %}
|
{% if nginx_behind_haproxy_settings %}
|
||||||
|
@ -12,7 +12,7 @@ proxy_set_header X-Forwarded-Host {{ nginx_x_forwarded_host }};
|
||||||
proxy_set_header X-Forwarded-Server $host;
|
proxy_set_header X-Forwarded-Server $host;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if not nginx_proxy_define_header_host %}
|
{% if nginx_proxy_define_header_host %}
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if nginx_define_x_real_ip %}
|
{% if nginx_define_x_real_ip %}
|
||||||
|
|
Loading…
Reference in New Issue