From fb1e4bd46c2a7826a043aa28ad47ab8543df92b2 Mon Sep 17 00:00:00 2001 From: Xialijun Date: Mon, 31 Jul 2023 22:55:14 +0800 Subject: [PATCH] Update proxy_host.conf by replace $host:$server with $http_host --- backend/templates/proxy_host.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/templates/proxy_host.conf b/backend/templates/proxy_host.conf index 3ce57a7e..99585e4f 100644 --- a/backend/templates/proxy_host.conf +++ b/backend/templates/proxy_host.conf @@ -56,7 +56,7 @@ proxy_http_version 1.1; {% if allow_websocket_upgrade == 1 or allow_websocket_upgrade == true %} proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $http_connection; - proxy_set_header Host $host:$server_port; + proxy_set_header Host $http_host; proxy_http_version 1.1; {% endif %}