mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #472] Pass the request to another reverse proxy server #398
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#398
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 @geek-baba on GitHub (Jun 23, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/472
This is working great for most use cases I have except when I am trying to redirect to another proxy service running on my Kubernetes cluster. The K8s cluster is running nginx ingress (proxy) and it should route to specific app based on the domain name. However looks like when I am passing it via nginx proxy manager to my k8s cluster, the url/domain name is not passed to it.
So in simplest terms I want to pass domain name from one nginx server to another for further processing, is this something possible?
@pantherale0 commented on GitHub (Jun 25, 2020):
Try setting these in the advanced config:
@geek-baba commented on GitHub (Jun 26, 2020):
It does not work, also it says on advance config page:
@saschamander commented on GitHub (May 7, 2021):
@geek-baba Did you find any solutions for this?
I'm currently struggling to achieve the almost the same.
(For my case there is no kubernetes involved.)
Also found this issue https://github.com/jc21/nginx-proxy-manager/issues/286 which seems to cover the same topic.
@geek-baba commented on GitHub (May 21, 2021):
I had to separate the this proxy and k8s cluster to point to 2 different static IP's
@jhs512 commented on GitHub (Feb 9, 2023):
i solved this problem by this way : https://stackoverflow.com/questions/37523615/dynamic-proxy-pass-in-nginx-to-another-pod-in-kubernetes
After much research and trial and error I managed to solve this. First I changed the pod specification to:
spec:
containers:
- name: nginx
image: "nginx:1.10.0"
ports:
- containerPort: 8080
name: "external"
protocol: "TCP"
- name: dnsmasq
image: "janeczku/go-dnsmasq:release-1.0.5"
args:
- --listen
- "127.0.0.1:53"
- --default-resolver
- --append-search-domains
- --hostsfile=/etc/hosts
- --verbose
then I also had to disable the ipv6 for the resolver in nginx:
location ~ ^/(.+)$ {
resolver 127.0.0.1:53 ipv6=off;
set $backend "http://$1:80";
proxy_pass $backend;
}
Then it works as expected!
@github-actions[bot] commented on GitHub (Mar 28, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@github-actions[bot] commented on GitHub (May 8, 2025):
Issue was closed due to inactivity.