From 8618011b738fb62ce313f880c13eb4da8aaf527a Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Wed, 25 Feb 2026 16:18:06 +0100 Subject: [PATCH] wger: Use $http_host for proxy Host header Update the nginx config to set the proxied Host header from $http_host instead of $host. This preserves the original Host header sent by the client (including port) when forwarding requests, avoiding mismatches that can occur when $host omits the port or falls back to server_name. --- install/wger-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/wger-install.sh b/install/wger-install.sh index 360167cc7..213c29f38 100644 --- a/install/wger-install.sh +++ b/install/wger-install.sh @@ -164,7 +164,7 @@ server { location / { proxy_pass http://127.0.0.1:8000; - proxy_set_header Host $host; + proxy_set_header Host $http_host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_redirect off;