› NGINX
› NGINX Trac
› 3rd Party Modules
› Security Advisories
› CHANGES
› OpenResty
› ngx_lua
› Tengine
在线学习资源
› NGINX 开发从入门到精通
NGINX Modules
› ngx_echo
Livid
400.36D
568.04D
V2EX  ›  NGINX

$host 和 $http_host 的差别

  •  
  •   Livid ·
    PRO
    · Sep 30, 2013 · 9208 views
    This topic created in 4766 days ago, the information mentioned may be changed or developed.
    2 replies  •  1970-01-01 08:00:00 +08:00
    ijse
        1
    ijse  
       Sep 30, 2013   ❤️ 2
    配置nginx的proxy_pass时,设置HOST头要用$http_host, 除非端口号是80

    在这坑里栽过。。
    julyclyde
        2
    julyclyde  
       Oct 6, 2013   ❤️ 1
    $http_host是request里的host header
    $host是server{}里的server_name里的第一个
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   6019 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 116ms · UTC 03:01 · PVG 11:01 · LAX 20:01 · JFK 23:01
    ♥ Do have faith in what you're doing.