From 86672c927a537e1fed4fba33454e2a482b3a6417 Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Tue, 9 Sep 2014 13:02:39 +0530 Subject: [PATCH] pass Host head in case of dns_multitenant --- bench/templates/nginx.conf | 2 ++ 1 file changed, 2 insertions(+) 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}};