mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-28 19:05:51 +03:00
[GH-ISSUE #2076] proxy_set_header Host duplicates in the location #1497
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#1497
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 @Treverr on GitHub (May 28, 2022).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2076
I have a use case where I am proxying from my server to another hosted website. I found an issue where npm adds the
proxy_set_header Host $hostautomatically, and I cannot override it manually, which I need to in this case because the $host is wrong and I needed to manually set it to the upstream host for CDN's to recognize it.$hostis not defined so its nullI tried to do
set $hostin advanced but it just took my proxy offline.For example, I need it to look like this:
but NPM does not let that happen, it makes the configuration like this:
Which does not work upstream.
@pluigim commented on GitHub (Jun 2, 2022):
Hi have your same problem !
I have some host that don't work if you don't set
proxy_set_header Host
with the called fqdn hostname.
Have you found any solution ?
@Treverr commented on GitHub (Jun 2, 2022):
I had to manually go in and edit to remove that $host line that NPM adds only keeping my custom one.
Depending on your set up, You'll need to go into the docker itself 'docker exec -it nginsproxymanager sh' and and navigate to '/data/.../proxy_hosts' and edit the item manually.
@pluigim commented on GitHub (Jun 4, 2022):
Hi !
What you suggested solved the problem !
Thanks
@prashantsomashekar commented on GitHub (Oct 31, 2022):
@jc21 Is there no way to override this line, without resorting to this?
@cromulus commented on GitHub (Nov 17, 2022):
same issue. Trying to proxy s3 through NPM and having this issue.
Thanks!
@amjkwd commented on GitHub (May 19, 2023):
Hi, there,
I had found a way to solve that.
You can delete all your custom location in custom location tab, and add all location code in the advance tab.
It works for me to add my 'proxy_set_header Host xxxxxxx', hope you too.
@github-actions[bot] commented on GitHub (Feb 16, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@bilogic commented on GitHub (Apr 22, 2024):
For posterity due to the complete lack of documentation of NPM:
Details, usehttp,0.0.0.0,80to show that settings on this page have no effectAdvanced, set@github-actions[bot] commented on GitHub (Nov 25, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@github-actions[bot] commented on GitHub (Dec 4, 2025):
Issue was closed due to inactivity.