mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-03-03 16:15:54 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user