location / { proxy_set_header Host sub.domain.host.com; proxy_pass https://other.host.com/; }
The host header ends up being www