[GH-ISSUE #337] URL based Reverse Proxy #296

Closed
opened 2026-02-26 06:32:07 +03:00 by kerem · 7 comments
Owner

Originally created by @armagankaratosun on GitHub (Mar 24, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/337

Hello all,

I want to use nginx-proxy-manager to access my internal web services. But my problem is, I only want to use the IP of the nginx-proxy-manager to redirect my services based on URL, like

internal-service-1 -> http://nginx-proxy-manager-ip/internal-service-1
internal-service-2 -> http://nginx-proxy-manager-ip/internal-service-2
internal-service-3 -> https://nginx-proxy-manager-ip/internal-service-3

like;

location /internal-service-1 {
    proxy_set_header X-Forwarded-Host $host;
    proxy_set_header X-Forwarded-Server $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_pass              http://internal-service-1-ip:3000/;
}

Is it possible? If yes, how?

Regards,

Originally created by @armagankaratosun on GitHub (Mar 24, 2020). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/337 Hello all, I want to use nginx-proxy-manager to access my internal web services. But my problem is, I only want to use the IP of the nginx-proxy-manager to redirect my services based on URL, like internal-service-1 -> http://nginx-proxy-manager-ip/internal-service-1 internal-service-2 -> http://nginx-proxy-manager-ip/internal-service-2 internal-service-3 -> https://nginx-proxy-manager-ip/internal-service-3 like; ``` location /internal-service-1 { proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://internal-service-1-ip:3000/; } ``` Is it possible? If yes, how? Regards,
kerem closed this issue 2026-02-26 06:32:07 +03:00
Author
Owner

@miguelwill commented on GitHub (Mar 24, 2020):

yes, It works
only check with DNS

<!-- gh-comment-id:603506724 --> @miguelwill commented on GitHub (Mar 24, 2020): yes, It works only check with DNS
Author
Owner

@armagankaratosun commented on GitHub (Mar 25, 2020):

The problem is I don't have DNS, I only have IP address of the proxy-manager. I can't even edit my /etc/hosts file (or Windows equivalent).

<!-- gh-comment-id:603692292 --> @armagankaratosun commented on GitHub (Mar 25, 2020): The problem is I don't have DNS, I only have IP address of the proxy-manager. I can't even edit my /etc/hosts file (or Windows equivalent).
Author
Owner

@miguelwill commented on GitHub (Apr 6, 2020):

to take advantage of the option to use a name that is addressed to several IPs I would recommend using dnsmasq, since you can define them using the hosts table

<!-- gh-comment-id:610062728 --> @miguelwill commented on GitHub (Apr 6, 2020): to take advantage of the option to use a name that is addressed to several IPs I would recommend using dnsmasq, since you can define them using the hosts table
Author
Owner

@wtf911 commented on GitHub (Apr 15, 2020):

image

You can use the custom location in nginx-proxy-manager to do this super easy no dnsmasq needed. make /service1/ point to service 1 and add location for /service/2 to point to service 2 ...and poof it works. www.test.com/service2/ etc.....

<!-- gh-comment-id:614327046 --> @wtf911 commented on GitHub (Apr 15, 2020): ![image](https://user-images.githubusercontent.com/5151430/79398150-e76b4e00-7f4d-11ea-9f98-e8020d103424.png) You can use the custom location in nginx-proxy-manager to do this super easy no dnsmasq needed. make /service1/ point to service 1 and add location for /service/2 to point to service 2 ...and poof it works. www.test.com/service2/ etc.....
Author
Owner

@miguelwill commented on GitHub (Apr 16, 2020):

That's right, using folders you can route to other destinations and ports
the use of DNS was to direct in round-robin mode to more than one system or IP in the backend, as in the case of a cluster of web servers

<!-- gh-comment-id:614775969 --> @miguelwill commented on GitHub (Apr 16, 2020): That's right, using folders you can route to other destinations and ports the use of DNS was to direct in round-robin mode to more than one system or IP in the backend, as in the case of a cluster of web servers
Author
Owner

@Motordom commented on GitHub (May 8, 2020):

@wtf911 could you share your setup for qbittorrent? I cant get it working, keep getting 502 :(

<!-- gh-comment-id:625838479 --> @Motordom commented on GitHub (May 8, 2020): @wtf911 could you share your setup for qbittorrent? I cant get it working, keep getting 502 :(
Author
Owner

@wtf911 commented on GitHub (May 8, 2020):

@Motordom You need to change a setting in qbittorrent. You have to disable one of those security ones under webui in options so it will allow that kind of redirect I think that's what I did. Also note the slashes "/" I used in my previous comments screenshot making sure to have or not have a slash can be the difference of it working or not.

image

<!-- gh-comment-id:625855957 --> @wtf911 commented on GitHub (May 8, 2020): @Motordom You need to change a setting in qbittorrent. You have to disable one of those security ones under webui in options so it will allow that kind of redirect I think that's what I did. Also note the slashes "/" I used in my previous comments screenshot making sure to have or not have a slash can be the difference of it working or not. ![image](https://user-images.githubusercontent.com/5151430/81418353-884ac480-911a-11ea-899d-735b86c10dd8.png)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#296
No description provided.