[GH-ISSUE #162] Reverse proxy to url (for example Nextcloud and pihole) #142

Closed
opened 2026-02-26 06:30:44 +03:00 by kerem · 5 comments
Owner

Originally created by @geelenbert on GitHub (Jun 13, 2019).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/162

For some services i like to do reverse proxy not just to an IP and Port, but also to an additional path.

For example:
Pihole uses http://192.168.1.100/admin

Nextcloud used http://192.168.1.101/nextcloud

I would like to connect from https://pihole.domain.com and https://cloud.domain.com

my nginx configs looks like this:
proxy_pass http://192.168.1.100/admin/
proxy_pass http://192.168.1.101/nextcloud/

This works perfect.
proxy to the ip and port forks fine, just not adding the extra admin or nextcloud.

Originally created by @geelenbert on GitHub (Jun 13, 2019). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/162 For some services i like to do reverse proxy not just to an IP and Port, but also to an additional path. For example: Pihole uses http://192.168.1.100/admin Nextcloud used http://192.168.1.101/nextcloud I would like to connect from https://pihole.domain.com and https://cloud.domain.com my nginx configs looks like this: `proxy_pass http://192.168.1.100/admin/` `proxy_pass http://192.168.1.101/nextcloud/` This works perfect. proxy to the ip and port forks fine, just not adding the extra admin or nextcloud.
kerem 2026-02-26 06:30:44 +03:00
Author
Owner

@etricky commented on GitHub (Aug 29, 2019):

+1

<!-- gh-comment-id:525973413 --> @etricky commented on GitHub (Aug 29, 2019): +1
Author
Owner

@modem7 commented on GitHub (Feb 4, 2020):

+1 also

@geelenbert Did you ever manage to get pihole working nicely with Nginx Proxy Manager at all? Even with a workaround?

<!-- gh-comment-id:581900174 --> @modem7 commented on GitHub (Feb 4, 2020): +1 also @geelenbert Did you ever manage to get pihole working nicely with Nginx Proxy Manager at all? Even with a workaround?
Author
Owner

@adamgreenberg07 commented on GitHub (Nov 8, 2020):

Any chance this has been solved. I'd like to access my pihole from a subdomain address and can't figure out how to configure the NPM to accomplish this. Does anyone have this working?

<!-- gh-comment-id:723579766 --> @adamgreenberg07 commented on GitHub (Nov 8, 2020): Any chance this has been solved. I'd like to access my pihole from a subdomain address and can't figure out how to configure the NPM to accomplish this. Does anyone have this working?
Author
Owner

@5H3RM commented on GitHub (Jan 31, 2021):

I am having trouble with this as well but I have PiHole running on a different machine, I did find a work around is add the proxy then type the path manually ie. pihole.example.com/admin. I did thought NPM did have this built in (custom location?) but I wonder if it not working or if I'm using it incorrectly, my bet is the latter.

<!-- gh-comment-id:770334017 --> @5H3RM commented on GitHub (Jan 31, 2021): I am having trouble with this as well but I have PiHole running on a different machine, I did find a work around is add the proxy then type the path manually ie. pihole.example.com/admin. I did thought NPM did have this built in (custom location?) but I wonder if it not working or if I'm using it incorrectly, my bet is the latter.
Author
Owner

@chaptergy commented on GitHub (May 10, 2021):

Yes, this works. When add a proxy host as usual without any path, then go to the Custom Locations tab, and add a location / with your ip + path int the Forward Hostname / IP. But do this at your own risk, since this will most likely lead to broken links on whatever page you forward this to.

image

<!-- gh-comment-id:837466638 --> @chaptergy commented on GitHub (May 10, 2021): Yes, this works. When add a proxy host as usual without any path, then go to the _Custom Locations_ tab, and add a location `/` with your ip + path int the _Forward Hostname / IP_. But do this at your own risk, since this will most likely lead to broken links on whatever page you forward this to. ![image](https://user-images.githubusercontent.com/26956711/117734718-9034bd00-b1e3-11eb-9cff-4fb37ca829fd.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#142
No description provided.