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/ ````