LoginSignup
12
8

More than 5 years have passed since last update.

proxy_set_header Hostで設定するNginxの変数一覧

Posted at

備忘です。

ngx_http_proxy_module モジュールの
proxy_set_header Host で設定するNginxの変数一覧

名称 概要
$http_host リクエストヘッダのHTTP_HOSTの値
$host リクエストヘッダのポート番号を除いたHTTP_HOSTの値
もし、HTTP_HOSTが存在しない場合、リクエストを処理したサーバの `server_name` ディレクティブに書かれたサーバ名となる
$proxy_host proxy_passディレクティブに書かれたプロキシされるサーバ名とポート番号

デフォルトは下記

nginx.conf
proxy_set_header  Host  $proxy_host;
proxy_set_header  Connection  close;
12
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
8