2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-09 08:30:39 +00:00

pass Host head in case of dns_multitenant

This commit is contained in:
Pratik Vyas 2014-09-09 13:02:39 +05:30
parent 6e148971d2
commit 86672c927a

View File

@ -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}};