From b6a40bb7d08c600d28e7fc9f3f93849ad7dd3e8e Mon Sep 17 00:00:00 2001 From: Erope Date: Tue, 31 May 2022 16:50:04 +0800 Subject: [PATCH] Change $host to $http_host --- docs/en_US/guide/dashboard.md | 4 ++-- docs/guide/dashboard.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en_US/guide/dashboard.md b/docs/en_US/guide/dashboard.md index 74e50264..042c7a44 100644 --- a/docs/en_US/guide/dashboard.md +++ b/docs/en_US/guide/dashboard.md @@ -60,7 +60,7 @@ to open the management script #PROXY-START/ location / { proxy_pass http://127.0.0.1:8008; - proxy_set_header Host $host; + proxy_set_header Host $http_host; proxy_set_header Upgrade $http_upgrade; } location ~ ^/(ws|terminal/.+)$ { @@ -68,7 +68,7 @@ location ~ ^/(ws|terminal/.+)$ { proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; + proxy_set_header Host $http_host; } #PROXY-END/ ```` diff --git a/docs/guide/dashboard.md b/docs/guide/dashboard.md index 954f6dcf..5c66bc25 100644 --- a/docs/guide/dashboard.md +++ b/docs/guide/dashboard.md @@ -74,7 +74,7 @@ curl -L https://jihulab.com/nezha/nezha/-/raw/master/script/install.sh -o nezha. #PROXY-START/ location / { proxy_pass http://127.0.0.1:8008; - proxy_set_header Host $host; + proxy_set_header Host $http_host; proxy_set_header Upgrade $http_upgrade; } location ~ ^/(ws|terminal/.+)$ { @@ -82,7 +82,7 @@ location ~ ^/(ws|terminal/.+)$ { proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; + proxy_set_header Host $http_host; } #PROXY-END/ ````