【问题标题】:What should a proxy pass in the Host header?代理应该在 Host 标头中传递什么?
【发布时间】: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


【解决方案1】:

nginx-proxy 在其配置中有 proxy_set_header Host $http_host。对我来说,这听起来像是一个权威来源。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-01-28
    • 1970-01-01
    • 2013-07-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-02-01
    • 2022-01-14
    相关资源
    最近更新 更多