mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #2804] X-Forwarded-Host missing from default proxy.conf #1929
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#1929
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @thor0215 on GitHub (Apr 4, 2023).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2804
The default proxy.conf file is missing the X-Forwarded-Host header
github.com/NginxProxyManager/nginx-proxy-manager@67208e43cc/docker/rootfs/etc/nginx/conf.d/include/proxy.conf (L1-L7)add_header X-Served-By $host;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Scheme $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass $forward_scheme://$server:$port$request_uri;
This should be added to the above config:
proxy_set_header X-Forwarded-Host $http_host;
This breaks code-server currently when using the default NGinx Proxy Manager settings
https://github.com/coder/code-server
@662 commented on GitHub (Apr 15, 2023):
X-Forwarded-Port
@github-actions[bot] commented on GitHub (Jan 23, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@medram commented on GitHub (Feb 11, 2025):
Hello everyone, I run into the same issue, and I solved it like this:
My config file
./configs/server_proxy.conf:Note: You can change
CF-Connecting-IPwith anything you want if needed.@github-actions[bot] commented on GitHub (Sep 14, 2025):
Issue is now considered stale. If you want to keep it open, please comment 👍