【发布时间】:2021-04-30 05:10:52
【问题描述】:
今天我发现$host 和$http_host 不同。至少$host 不包含端口号。虽然有more to it。我的理解是人们usually doproxy_set_header Host $host,这是……错了吗?是否有某种一般准则?
【问题讨论】:
-
投反对票的原因有哪些?
标签: nginx proxy http-headers request-headers
今天我发现$host 和$http_host 不同。至少$host 不包含端口号。虽然有more to it。我的理解是人们usually doproxy_set_header Host $host,这是……错了吗?是否有某种一般准则?
【问题讨论】:
标签: nginx proxy http-headers request-headers
nginx-proxy 在其配置中有 proxy_set_header Host $http_host。对我来说,这听起来像是一个权威来源。
【讨论】: