mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #460] Proxied URL not loading correct vhost from source server. #387
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#387
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 @archness1 on GitHub (Jun 15, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/460
What is troubling you?
I have a Matomo site setup that I use to provide stats tracking across~10 other websites. I use proxied domains pointed at the same Matomo instance hosted on a cPanel server.
My setup is: Matomo installed at internal url of: http://webstats.example1.com
Externally it is: https://stats.example1.com. (This is proxied by NPM)
Then I have https://stats.example2.com, https://stats.example3.com
All of these are proxied to https://webstats.example1.com on the cPanel server.
When I load https://stats.example1.com, it loads a different vhost from the cPanel server. It should load https://webstats.example1.com. Instead it loads http://example6.com.
Is there an advanced config I need to add for nginx to proxy this correctly?
@theraw commented on GitHub (Jun 18, 2020):
https://github.com/jc21/nginx-proxy-manager/blob/master/docker/rootfs/etc/nginx/conf.d/include/proxy.conf#L2
to be able to reverse proxy
stats.example1.comtowebstats.example1.comyou have to addproxy_set_header Host webstats.example1.com;
but NPM does not have a feature to set custom HOST so this looks a bit not possible for now 🤒
@archness1 commented on GitHub (Jun 18, 2020):
Thanks for taking a look at this. I had tried adding that into the advanced field yesterday but with no success.
Can we turn this ticket into an enhancement?
@chaptergy commented on GitHub (May 12, 2021):
If this is an enhancement it would be a duplicate of https://github.com/jc21/nginx-proxy-manager/issues/127