diff --git a/bench/templates/nginx.conf b/bench/templates/nginx.conf index def51464..33bbe88f 100644 --- a/bench/templates/nginx.conf +++ b/bench/templates/nginx.conf @@ -33,6 +33,8 @@ upstream frappe { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; {% if not dns_multitenant %} proxy_set_header Host {{ site.name }}; + {% else %} + proxy_set_header Host $host; {% endif %} proxy_set_header X-Use-X-Accel-Redirect True; proxy_read_timeout {{http_timeout}};