2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-11 15:51:03 +00:00

fix wrong hostname!, use X-Frappe-Site-Name to select site

This commit is contained in:
Pratik Vyas 2014-11-26 22:55:43 +05:30
parent 9c72d0a552
commit a54bc1174b

View File

@ -26,10 +26,9 @@ upstream frappe {
location @magic {
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;
proxy_set_header X-Frappe-Site-Name {{ site.name }};
{% endif %}
proxy_set_header Host $host;
proxy_set_header X-Use-X-Accel-Redirect True;
proxy_read_timeout {{http_timeout}};
proxy_redirect off;