www/nginx: (bugfix) add host header (#799)

This commit is contained in:
Fabian Franz BSc
2018-08-18 08:27:18 +02:00
committed by GitHub
parent 868df478e6
commit 3d34ee9a4c
@@ -82,6 +82,7 @@ location {{ location.matchtype }} {{ location.urlpattern }} {
{% endif%}
{% if location.upstream is defined and (location.php_enable is not defined or location.php_enable != '1') %}
{% set upstream = helpers.getUUID(location.upstream) %}
proxy_set_header Host $host;
proxy_pass http{% if upstream.tls_enable == '1' %}s{% endif %}://upstream{{ location.upstream.replace('-','') }};
{% if upstream.tls_enable == '1' %}
{% if upstream.tls_client_certificate is defined and upstream.tls_client_certificate != '' %}