mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #104] How do i forward to a folder? #92
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#92
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 @danmed on GitHub (Mar 15, 2019).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/104
I'd like to have something like
https://sub.domain.com forward to https://192.168.1.1:8080/sub
is that currently possible? I can't find a way to achieve it.. I've tried searching issues but i think i'm missing some fundamental vocabulary to find my answer..
@jc21 commented on GitHub (Mar 18, 2019):
I guess it depends on the upstream service. What is "sub"? Does
https://192.168.1.1:8080/redirect to sub alone? If so, just forward to/and let it do it's thing.FWIW this project isn't trying to solve these types of problems. It's just trying to expose upstream services, not redirect their paths.
@danmed commented on GitHub (Mar 18, 2019):
sub can be anything... so http://jeff.mydomain.com forward to http://192.168.1.1/sonarr
for example..
@jc21 commented on GitHub (Mar 18, 2019):
So in that example,
http://192.168.1.1/sonarris another reverse proxy forhttp://192.168.1.1:8989so why not just createhttp://sonarr.mydomain.com->http://192.168.1.1:8989@danmed commented on GitHub (Mar 19, 2019):
I dont think i'm explaining myself very well..
Say for example i have a system that hosts many things... each of them available in different sub folders..
http://192.168.1.1/sonarr
http://192.168.1.1/randomsite
http://192.168.1.1/cameras
now i'd like, in nginx proxy manager to set up a subdomain for each one of those.
http://sonarr.domain.com
http://randomsite.domain.com
http://cameras.domain.com
i currently can't do this, yet it can be done in the config files that i used to use...
Now, if i'm being a dumbass here, it's because of a lack of vocabulary to fully explain myself..
@kolbii commented on GitHub (Mar 19, 2019):
http://192.168.1.1/sonarr what does this mean? Do you already have a running web server that serves the sonar at that URL?
By the way, are you sure this project is that tool what you need?
To serve sonar, camera platform or any other things just set a standalone NGINX up.
@danmed commented on GitHub (Mar 19, 2019):
Sonarr is installed on another server, a Windows one.. that is the URL that
it serves it's interface on.. it's already available... I want it on an
external address which is what nginx-proxy-manager does... I can very
easily point sonarr.domain.com to 192.168.2.2 on whatever Port.. but not
all applications (sonarr is just an example.. it really doesn't matter what
it is) only use a port.. they also have a folder as part of the URL.. how
do I send sonarr.domain.com to this URL folder...
Your project is exactly what I need.. I've been using NGINX to do this for
years.. but I cannot find a way to to do this in the nginx-proxy-manager
There is an example of a working config for NGINX here :
https://www.reddit.com/r/nginx/comments/6gbg9i/reverse_proxy_a_subdomain_to_a_folder_reward/dipf0x7/
On Tue, Mar 19, 2019, 6:35 PM kolbii notifications@github.com wrote:
@jc21 commented on GitHub (Mar 19, 2019):
I think you're explaining yourself ok, but I don't think you're understanding that you are already running a webserver as a reverse proxy on that windows machine that sits in front of your services. Since this project is just that, you don't need both. Whatever is running on port 80 on 192.168.1.1 is what you need to skip over and connect directly to the service.
FWIW the sonarr instructions for windows do in fact listen on port 8989 on the box you're running it on.
Just try it. Create a proxy hist in NPM that points to the machine running Sonarr on port 8989 and see what happens.
@danmed commented on GitHub (Mar 20, 2019):
Sonarr was just an example.. I know it runs on that Port.. don't worry,
I'll figure out a way to do what I'm talking about.. thanks for getting
back to me though.
On Tue, Mar 19, 2019, 10:20 PM jc21 notifications@github.com wrote:
@ursus69 commented on GitHub (Apr 30, 2019):
Hello,
I am having the same problem here.
I can serve my "Guacamole" installation out from "192.168.1.10:8080/guacamole" with clasic Nginx.
But impossible to join in Nginx Proxy Manager, I have tryed everything,
I just get to the "192.168.1.10:8080" wich is the Tomcat root and not the application root.
will you extend this functionallity in the near future?
@danmed commented on GitHub (Apr 30, 2019):
Hopefully you can make the Dev understand the issue.. I wasn't able to
articulate the problem I was having even though I can achieve it perfectly
in plain old NGINX
On Tue, 30 Apr 2019, 10:39 Jose, notifications@github.com wrote:
@danmed commented on GitHub (May 3, 2019):
Here is an example that may help clarify things.
I am running PHPMyadmin on a MySQL box..
I have set up a proxy host in Nginx Proxy Manager as so :
The problem is, that to actually access Phpmyadmin, i have to visit
https://sub.domain.co.uk/phpmyadmin
i want to be able to access it by JUST visiting
https://sub.domain.co.uk
@jc21 commented on GitHub (May 8, 2019):
I was able to accomplish your situation with the existing interface. However there is a problem that I'll have to solve before it will work for everyone. Stay tuned.
@danmed commented on GitHub (May 8, 2019):
That's awesome, thank you so much. Look forward to hearing from you
On Wed, 8 May 2019, 01:39 jc21, notifications@github.com wrote:
@danmed commented on GitHub (May 8, 2019):
I notice you've pushed a fix.. how would i go about getting hold of that fix?
@jc21 commented on GitHub (May 8, 2019):
I'm in the middle of testing it along with a few other fixes. Should be releasing within a day
@jc21 commented on GitHub (May 9, 2019):
v2.0.13 is up with the fix. Here's how you would setup:
/as the location path and for the Forward Hostname / IP enter192.168.0.10/phpmyadmin/making sure you have that trailing slash, it's important.@ursus69 commented on GitHub (May 9, 2019):
Hello,
could you put your changes in the latest-armhf so I can test them, is the
one that I use in a RasPi, and I just pulled the latest is from:
jc21/nginx-proxy-manager:latest-armhf 522.3 MB 2019-03-05 05:56:03
Many Thanks
On Thu, May 9, 2019 at 4:37 AM jc21 notifications@github.com wrote:
@jc21 commented on GitHub (May 9, 2019):
The
latest-armhftag is deprecated. You should be able to use thelatesttag and because of docker manifests, you'll get the image applicable for your Pi, which is probably going to belatest-armv7l@danmed commented on GitHub (May 10, 2019):
Thanks for this.. works great (As long as you read the instructions and add the trailing / ) :)
thanks again
@ursus69 commented on GitHub (May 10, 2019):
Great Work!
Exactly what I needed !
Sent from my iPhone
@bba-dvhk commented on GitHub (Jan 18, 2020):
Hi.

What when we have some Services in folder but don't on default port:
ie:
panel.dom.local -> https://192.168.1.55:48443 Works fine
webmail.dom.local -> https://192.168.1.55/SOGo/:48443 not working
but when i point browser to http://192.168.1.55:48443/SOGo/ it works fine.
Is it possibile to make this working??
@jc21 commented on GitHub (Jan 19, 2020):
You're putting the Folder Path in the Hostname/IP section which is not the right place. Furthermore, your non-working upstream
https://192.168.1.55/SOGo/:48443is not a valid URL, it should behttps://192.168.1.55:48443/SOGo/.The Custom Locations tab is for sub-folders of your domains.
@bba-dvhk commented on GitHub (Jan 19, 2020):
As I understand Custom Locations work like:
Broswer -> panel.dom.local -> https://192.168.1.55:48443
Broswer -> panel.dom.local/SOGo -> http//192.168.1.55:48443/SOGo
Broswer -> panel.dom.local/admin -> http://192.168.1.55:8080/admin
Broswer -> panel.dom.local/something -> http://156.1.55.6:80/something
I look to achieve:
Broswer -> panel.dom.local -> https://192.168.1.55:48443
Broswer -> webmail.dom.local -> http//192.168.1.55:48443/SOGo
Broswer -> admin.dom.local -> http://192.168.1.55:8080/admin
Broswer -> something.dom.local-> http://156.1.55.6:80/something
@MartinKuhl commented on GitHub (May 1, 2020):
I have a similar setup, I would like to achieve the following:
Broswer -> sw.domain.org -> http://192.168.1.55:8000/sw
Broswer -> m1.domain.org -> http://192.168.1.55:8000/m1
Broswer -> m2.domain.org -> http://192.168.1.55:8000/m2
I that possible an If how?
@OptimusGREEN commented on GitHub (Jun 29, 2020):
I too would like to achieve this.
@kaushikray1 commented on GitHub (Aug 19, 2020):
Hello Were you able to get this to work? i am actually trying the same thing but no luck so far.
I installed Mailcow and Mailcow webmail is being served at
mail.example.com/SOGo/
Now mail.example.com is pointing at say 192.168.1.5 and is serving the admin page for the mail server.
I want to make it so that webmail.example.com will point to
https://192.168.1.5/SOGo/
I followed the instructions here https://github.com/jc21/nginx-proxy-manager/issues/104#issuecomment-490720849 but no luck so far
This is what my setup looks like now
https://postimg.cc/6TD31yKC
https://postimg.cc/nsccQmKf
Any ideas what I may be doing wrong, any help is very appreciated.
Thank you
@kaushikray1 commented on GitHub (Aug 19, 2020):
Hello I understand you got thi to work, could you please help me with my setup. I am definitely doing something wrong. Thank you.
Hello Were you able to get this to work? i am actually trying the same thing but no luck so far.
I installed Mailcow and Mailcow webmail is being served at
mail.example.com/SOGo/
Now mail.example.com is pointing at say 192.168.1.5 and is serving the admin page for the mail server.
I want to make it so that webmail.example.com will point to
https://192.168.1.5/SOGo/
I followed the instructions here #104 (comment) but no luck so far
This is what my setup looks like now
https://postimg.cc/6TD31yKC
https://postimg.cc/nsccQmKf
Any ideas what I may be doing wrong, any help is very appreciated.
Thank you
@Kh3nsu commented on GitHub (Oct 31, 2020):
Hello,
Is there something new about this ?
I need that as well!
As example redirect from example.domain.de -> 192.168.2.97:6060/?instance=87ed0a9
If I try the things above I can only get this to work: 192.168.2.97/?instance=87ed0a9:6060 which is wrong :/
@OptimusGREEN commented on GitHub (Oct 31, 2020):
Try 192.168.2.97/?instance=87ed0a9/ with the port in the port box. The trailing slash is required.
@Kh3nsu commented on GitHub (Oct 31, 2020):
Hey thanks four your reply, I tried it like that:

Sadly the Destination is still wrong:

I need the port before the /?instance=87ed0a9/ like that: http://192.168.2.97:6060/?instance=87ed0a9/
@OptimusGREEN commented on GitHub (Oct 31, 2020):
Its not the details tab it goes in, it goes in the custom location tab.
The details tab still needs filled out but I believe it gets ignored.
@kaushikray1 commented on GitHub (Nov 1, 2020):
Is the above example working, for me i am getting so unlucky i guess, its still not working for me. :(
@Kh3nsu commented on GitHub (Nov 1, 2020):
No sadly it is not working for me :(
@kaushikray1 commented on GitHub (Nov 1, 2020):
Thanks for the update. hopefully it will be working soon in some newer version or someone will post the rit config. I will keep trying different config and if i get it to work I will post.
@bba-dvhk commented on GitHub (Nov 1, 2020):
For me is working:
Look at screens
@OptimusGREEN commented on GitHub (Nov 1, 2020):
yes mines working.
@fischdenflo commented on GitHub (Nov 28, 2020):
Unfortunately the access list doesn't work if you use it like that.
@kaushikray1 commented on GitHub (Nov 29, 2020):
Could you please share what to do in order for it to work. I have been trying for a while.
Get Outlook for Androidhttps://aka.ms/ghei36
From: fischdenflo notifications@github.com
Sent: Friday, November 27, 2020 7:32:06 PM
To: jc21/nginx-proxy-manager nginx-proxy-manager@noreply.github.com
Cc: Kaushik Ray ray.1_1@live.com; Comment comment@noreply.github.com
Subject: Re: [jc21/nginx-proxy-manager] How do i forward to a folder? (#104)
Unfortunately the access list doesn't work if you use it like that.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/jc21/nginx-proxy-manager/issues/104#issuecomment-735018126, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABGA5GU2AASCRU7DGRB4IOLSSBAINANCNFSM4G6ZBN4A.
@meichthys commented on GitHub (Jan 15, 2021):
Just in case anyone else is still struggling with this, I've noticed that this seems to only work if also using an SSL certificate.
@meichthys commented on GitHub (Jan 17, 2021):
@kaushikray1 Also, I've noticed that if I have the following enabled, some resources won't load correctly when forwarding to a specific folder:

In other words, make sure the above option is turned off.
@gmag11 commented on GitHub (Jan 19, 2021):
I'm trying to get this working but I've not got it.
I use Nginx Proxy Manager to publish some services on Docker. One of them is NodeRed. It listens on port 1880.
Main panel is on http://nodered:1880/ but I do not want to publish it. I only need dashboard to be accessible from Internet. It is on http://nodered:1880/ui. I want to map it to https://dashboard.mydomain.com.
I've tried using this config
But I do get 502 error from server and next line in default.log:
and this in error.log:
@gmag11 commented on GitHub (Jan 19, 2021):
I've tried this config too:
After that, when I try to reach https://dashboard.mydomain.com I get this error from server
And this line on proxy_host.log
@gmag11 commented on GitHub (Jan 19, 2021):
As @jc21 stated on https://github.com/jc21/nginx-proxy-manager/issues/104#issuecomment-490720849
I've tried this:
Now I get this on web browser
So not working yet :(
@meichthys commented on GitHub (Jan 19, 2021):
@gmag11 I think you're close.

I'm using similar configurations. Are you using SSL? It sounds weird, but i wasn't able to get this to work until I started using an SSL cert.
My configuration looks like the following (note i had to forward the
/zmlocation as well - this shouldn't be required for all services though - i think it was something to do with the zoneminder internal configuration)@gmag11 commented on GitHub (Jan 20, 2021):
Thank you @meichthys . That worked!
I've found that even if Force SSL is marked, it still responds to plain HTTP too. Do you think it is a bug?
@meichthys commented on GitHub (Jan 20, 2021):
@gmag11 Interesting, I'm seeing that as well. It looks like a bug to me. Could you create a new issue for that?
@kaushikray1 commented on GitHub (Jan 20, 2021):
Hey thank you for posting this configuration . This is the first time I got this working and I have no problem with redirecting to the secure page like someone else mentioned.
Thank you again.
Get Outlook for Androidhttps://aka.ms/ghei36
From: MeIchthys notifications@github.com
Sent: Tuesday, January 19, 2021 12:03:46 PM
To: jc21/nginx-proxy-manager nginx-proxy-manager@noreply.github.com
Cc: Kaushik Ray ray.1_1@live.com; Mention mention@noreply.github.com
Subject: Re: [jc21/nginx-proxy-manager] How do i forward to a folder? (#104)
@gmag11https://github.com/gmag11 I think you're close.
I'm using similar configurations. Are you using SSL? It sounds weird, but i wasn't able to get this to work until I started using an SSL cert.
My configuration looks like the following (note i had to forward the /zm location as well - this shouldn't be required for all services though - i think it was something to do with the zoneminder internal configuration)
[image]https://user-images.githubusercontent.com/10717998/105067808-1c14b480-5a4e-11eb-8df7-3b644b8e25e5.png
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/jc21/nginx-proxy-manager/issues/104#issuecomment-762981868, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABGA5GTZEJGDZ3P2WFV2LITS2W3PFANCNFSM4G6ZBN4A.
@kaushikray1 commented on GitHub (Jan 20, 2021):
After a bit more experiment I actually see the same problem. It's not redirecting to the https page.
Get Outlook for Androidhttps://aka.ms/ghei36
From: MeIchthys notifications@github.com
Sent: Wednesday, January 20, 2021 5:08:07 PM
To: jc21/nginx-proxy-manager nginx-proxy-manager@noreply.github.com
Cc: Kaushik Ray ray.1_1@live.com; Mention mention@noreply.github.com
Subject: Re: [jc21/nginx-proxy-manager] How do i forward to a folder? (#104)
@gmag11https://github.com/gmag11 Interesting, I'm seeing that as well. It looks like a bug to me. Could you create a new issue for that?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/jc21/nginx-proxy-manager/issues/104#issuecomment-763981188, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABGA5GRHIYH4CNDZKJ75QQLS25H4PANCNFSM4G6ZBN4A.
@kaushikray1 commented on GitHub (Jan 20, 2021):
After a bit more experiment I actually see the same problem. It's not redirecting to the https page.
Get Outlook for Androidhttps://aka.ms/ghei36
From: Kaushik ray.1_1@live.com
Sent: Wednesday, January 20, 2021 5:12:34 PM
To: jc21/nginx-proxy-manager reply@reply.github.com; jc21/nginx-proxy-manager nginx-proxy-manager@noreply.github.com
Cc: Mention mention@noreply.github.com
Subject: Re: [jc21/nginx-proxy-manager] How do i forward to a folder? (#104)
Hey thank you for posting this configuration . This is the first time I got this working and I have no problem with redirecting to the secure page like someone else mentioned.
Thank you again.
Get Outlook for Androidhttps://aka.ms/ghei36
From: MeIchthys notifications@github.com
Sent: Tuesday, January 19, 2021 12:03:46 PM
To: jc21/nginx-proxy-manager nginx-proxy-manager@noreply.github.com
Cc: Kaushik Ray ray.1_1@live.com; Mention mention@noreply.github.com
Subject: Re: [jc21/nginx-proxy-manager] How do i forward to a folder? (#104)
@gmag11https://github.com/gmag11 I think you're close.
I'm using similar configurations. Are you using SSL? It sounds weird, but i wasn't able to get this to work until I started using an SSL cert.
My configuration looks like the following (note i had to forward the /zm location as well - this shouldn't be required for all services though - i think it was something to do with the zoneminder internal configuration)
[image]https://user-images.githubusercontent.com/10717998/105067808-1c14b480-5a4e-11eb-8df7-3b644b8e25e5.png
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/jc21/nginx-proxy-manager/issues/104#issuecomment-762981868, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABGA5GTZEJGDZ3P2WFV2LITS2W3PFANCNFSM4G6ZBN4A.
@plato79 commented on GitHub (Feb 19, 2021):
I have been successful for some services. But plex refuses to accept
Here is the configuration I tried:
on the Custom locations tab:
location = /
Scheme = http
FW Hostname/IP = 192.168.1.XXX/web/
Port = 32400
It should work like this I assume but it doesn't
Force SSL, HSTS etc enabled. I tried Cache and WebSockets on and off, but it doesn't matter.
At last I only get 404 error. Here is the output of wget -v plex.mydomain.com
@meichthys commented on GitHub (Feb 19, 2021):
@plato79 It seems like your configuration matches mine. Perhaps it's Plex being a little over-defensive.
The only thing I can think of is to make sure you have a valid SSL certificate selected instead of the option to create a new one.
@kaushikray1 commented on GitHub (Feb 19, 2021):
You don't need to add the web part for plex to work
Get Outlook for Androidhttps://aka.ms/ghei36
From: MeIchthys notifications@github.com
Sent: Friday, February 19, 2021 10:31:48 AM
To: jc21/nginx-proxy-manager nginx-proxy-manager@noreply.github.com
Cc: Kaushik Ray ray.1_1@live.com; Mention mention@noreply.github.com
Subject: Re: [jc21/nginx-proxy-manager] How do i forward to a folder? (#104)
@plato79https://github.com/plato79 It seems like your configuration matches mine. Perhaps it's Plex being a little over-defensive.
The only thing I can think of is to make sure you have a valid SSL certificate selected instead of the option to create a new one.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/jc21/nginx-proxy-manager/issues/104#issuecomment-782149883, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABGA5GW7VXIWQZBDUXHXXBTS7Z76JANCNFSM4G6ZBN4A.
@kaushikray1 commented on GitHub (Feb 19, 2021):
So you can basically just use the ip address and the port number, that's all you need to do. The '/web' part is not necessary for plex to work with reverse proxy only in case of ip address. I am using plex with just the port and a ip for a while now.
Get Outlook for Androidhttps://aka.ms/ghei36
From: Kaushik ray.1_1@live.com
Sent: Friday, February 19, 2021 4:26:54 PM
To: jc21/nginx-proxy-manager nginx-proxy-manager@noreply.github.com; jc21/nginx-proxy-manager reply@reply.github.com
Cc: Mention mention@noreply.github.com
Subject: Re: [jc21/nginx-proxy-manager] How do i forward to a folder? (#104)
You don't need to add the web part for plex to work
Get Outlook for Androidhttps://aka.ms/ghei36
From: MeIchthys notifications@github.com
Sent: Friday, February 19, 2021 10:31:48 AM
To: jc21/nginx-proxy-manager nginx-proxy-manager@noreply.github.com
Cc: Kaushik Ray ray.1_1@live.com; Mention mention@noreply.github.com
Subject: Re: [jc21/nginx-proxy-manager] How do i forward to a folder? (#104)
@plato79https://github.com/plato79 It seems like your configuration matches mine. Perhaps it's Plex being a little over-defensive.
The only thing I can think of is to make sure you have a valid SSL certificate selected instead of the option to create a new one.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/jc21/nginx-proxy-manager/issues/104#issuecomment-782149883, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABGA5GW7VXIWQZBDUXHXXBTS7Z76JANCNFSM4G6ZBN4A.
@plato79 commented on GitHub (Feb 20, 2021):
Are you sure about that? When I write only IP and port, it shows an XML file only.
@kaushikray1 commented on GitHub (Feb 20, 2021):
Works for me. My plex server runs on ubuntu. It Automatically redirects to /web
Get Outlook for Androidhttps://aka.ms/ghei36
From: Plato notifications@github.com
Sent: Saturday, February 20, 2021 7:30:16 AM
To: jc21/nginx-proxy-manager nginx-proxy-manager@noreply.github.com
Cc: Kaushik Ray ray.1_1@live.com; Mention mention@noreply.github.com
Subject: Re: [jc21/nginx-proxy-manager] How do i forward to a folder? (#104)
Are you sure about that? When I write only IP and port, it shows an XML file only.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/jc21/nginx-proxy-manager/issues/104#issuecomment-782629763, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABGA5GXC57XJTVOUT4FNGW3S76TNRANCNFSM4G6ZBN4A.
@casperse commented on GitHub (Oct 20, 2021):
I have tried everything in this post and I still get:

Kuma uptime have a status page:
http://IP:PORT/status
But no matter what I do I cant access the page.

The instruction just say to enable websockets:
https://github.com/louislam/uptime-kuma/wiki/Reverse-Proxy#nginx-proxy-manager
@meichthys commented on GitHub (Oct 20, 2021):
@casperse Could you screenshot your
Custom locationstab?@chaptergy commented on GitHub (Oct 20, 2021):
@casperse Websockets support is not actually required by kuma if you just want to expose the status page as described in this issue. Additionally, the

/statuspath is not a real folder but a virtual path, so exposing just this location would not work. What you want is to expose your Kuma instance normally with just ip and port, and set the entry page to "Status page" within the kuma settings.@Tyrian81 commented on GitHub (Oct 25, 2021):
Im also having some difficulty proxying Guacamole

this takes me to : https://mydomain.com/guacamole/:8084 and an tomcat 404 error
correcting the URL by removing :8084 does proxy to Guacamole , any suggestions on a clean proxy ?
@vohaha7 commented on GitHub (Oct 31, 2021):
Hi, dear community
1st of all let me thank you for this GREAT tool! It works like a charm and ist really really useful!
I just wanted to help somebody who may be get the scenario "example.server.com --> 192.168.x.x:PORT/Address" to work not as expected. In my case I was trying to forward a mail-in-a-box system to my subdomain and got a problem with not working images, scripts etc.
My solution was to add such a configuration in the "Custom locations" section:
Location: /
Scheme: https
Forward Hostname/IP: 192.168.x.x/mail/ <--- hier is a last slash very important
Forward Port: 443
Custom configuration (under the gear in upper right corner):
One more. Switches in a "Details" section work. So you can set "Block exploits" and "Websocket support" if you wish. "Cashe Assets" I left unswitched.
Sorry if some of my custom config lines are useless or wrong to place. I'm not a Nginx specialist, just wanted to post a solution that works for me.
Happy installing!
Voha
@vohaha7 commented on GitHub (Oct 31, 2021):
Your mistake is to put in a custom configuration "Location /... { .... }" section. UI settings are transferred to Location sections by itself. As a result you have such a config file "Location /..... { Location /.... { ........................ } }" and that is wrong.
@Brailyn commented on GitHub (Nov 7, 2021):
I have the same issue with Guacamole. Probably easier to fix on that end, but it is strange and would be great if someone could see how to fix in NPM.
@danmed commented on GitHub (Nov 28, 2021):
This is the config that works for me for guacamole if it helps at all.. it probably came from here anyway :
it's possibly worth noting though that i use an LE wildcard certificate via cloudflare.
@Graywolf9 commented on GitHub (Feb 10, 2022):
It works perfect, thank you so much!
@Oscaramr commented on GitHub (Feb 20, 2022):
I did this and i get ERR_TOO_MANY_REDIRECTS
https://i.imgur.com/MaIh9wu.png
https://i.imgur.com/3CrKIkD.png
@lstellway commented on GitHub (Mar 10, 2022):
Not sure if this could be helpful for anybody else, but I wanted a similar setup. A difference for me is the upstream server requires the upstream
Hostheader. The default configuration passes the downstreamHostheader through. My solution was to create a custom configuration to pass my desiredHostheader:location / { proxy_set_header X-Forwarded-Scheme $scheme; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host "example.upstreamserver.com"; proxy_pass https://example.upstreamserver.com:443/rewritten/path/; }@nZeus commented on GitHub (May 15, 2022):
I did this,and now when I open https://myserver.com/, it redirects me to https://myserver.com:88/subfolder
Anybody knows what am I doing wrong?
@nettoinfo commented on GitHub (Nov 4, 2022):
It worked for me... use the "Custom Locations" option, just put a / in Set location * and http in Scheme* the server server in Forward Hostname / IP* like this: 192.168.10.144/dir/ and in Forward Port * put the port, ex: 8081.
Thank'u!
@nettoinfo commented on GitHub (Nov 4, 2022):
in detail you can repeat the information because it will be ignored.
@oywino commented on GitHub (Nov 27, 2022):
I still can't get this to work.
It's beyond me why this appears to be so complicated. This is what I want to achieve:
test.mydomain.com --> https://192.168.x.x:8689/folder/I use Let's encrypt certificates. I'm on NPM 2.9.19
All web apps I have that do not require redirection to a subfolder, works just perfect usng Nginx as an RProxy.
All web apps I have that do require such redirection, fails.
I have read this whole thread over and over and nothing works for me.
I used Apache as my reverse proxy before now trying to move to Nginx using NPM. In Apache , all I needed to get this to work, was:
Pluss of course the redirect section:
@nettoinfo commented on GitHub (Nov 28, 2022):
Try the following setup.
Fill in the configuration normally in Details (http/https)... and in
Advanced, put:
location = /{return 301 $scheme://$http_host/folder/;}
José Ferreira Neto
Profissional TI
Músico cristão membro da Assembleia de Deus.
Faça contato comigo | Visite meu site
Emails: @.*** | @.***
Lattes: https://t.co/O3fjQb6Zfb
Twitter's: @netto_info
http://www.facebook.com/profile.php?id=100000106146383MSN:
@.***
Perfil: http://fb.com/nettux
LinkedIn: https://www.linkedin.com/in/nettux/
Em dom., 27 de nov. de 2022 às 11:39, oywino @.***>
escreveu:
@oywino commented on GitHub (Nov 28, 2022):
Hi and thanks for your reply.
I tried this, but to no avail.
To give you a bit more background - the application I'm trying proxy, is Guacamole.
I worked perfectly using Apache, but for various reasons I decided to move to Nginx, and I can't get it to work.
I also tried to follow this guide: https://guacamole.apache.org/doc/gug/reverse-proxy.html#nginx
But still no-go.
@oywino commented on GitHub (Nov 28, 2022):
Thanks for helping, but I am fully capable of Google search myself. I do not need someone to tell me how to do that. I need someone with in-depth understanding on how to debug an Nginx Proxy Manager configuration.
Sorry.
@nettoinfo commented on GitHub (Nov 28, 2022):
I apologize for trying to help you and getting a kick as a thank you.
Em seg., 28 de nov. de 2022 10:48, oywino @.***>
escreveu:
@nettoinfo commented on GitHub (Nov 28, 2022):
The first tip I passed was not from Google... We have two NPM servers in
activity and there are almost thirty servers working, I work in a public
body and... maybe you need to know more about networks and NGInx (not NPM)
before using it, because that's how I started, despite "not having
technical knowledge".
José Ferreira Neto
Profissional TI
@VictorVonFrankenstein commented on GitHub (Dec 6, 2022):
Also need to sub.example.com -> IP:3001/app/list
Anyone was able to find a solution to this?
@oywino commented on GitHub (Dec 7, 2022):
I managed to get it working using custom location setting in NPM. The trick was to assign a static IP-address to my NPM container.
@wrt54gl commented on GitHub (Feb 12, 2023):
Having the same problem with node red:
Cannot GET /ui/ui/Has anyone found a way to fix this?
@nettoinfo commented on GitHub (Feb 13, 2023):
just put in the top box
location /ui
José Ferreira Neto
Profissional TI
Músico cristão membro da Assembleia de Deus.
Faça contato comigo | Visite meu site
Emails: @.*** | @.***
Lattes: https://t.co/O3fjQb6Zfb
Twitter's: @netto_info
http://www.facebook.com/profile.php?id=100000106146383MSN:
@.***
Perfil: http://fb.com/nettux
LinkedIn: https://www.linkedin.com/in/nettux/
Em dom., 12 de fev. de 2023 às 02:01, wrt54gl @.***>
escreveu:
@wrt54gl commented on GitHub (Feb 13, 2023):
This does not seem to work:
However
For anyone struggling with this:
Nginx Proxy Manager does not seem to ignore what is in
DetailswhenCustom locationsis filled in. Is this a bug?I had been using the same Hostname and port in
Detailsas inCustom locationsand everything started working perfectly when I changed the hostname in details to 1.1.1.1@souporman commented on GitHub (Feb 23, 2023):
Thank you, @nettoinfo your suggestion of adding location = /{return 301 $scheme://$http_host/folder/;} to "Advanced" was exactly what I needed. Now my guacamole and uptime kuma are working just like I want. Using Uptime Kuma as an example (@VictorVonFrankenstein looked like that's what he was trying to figure out), it looks like this:
Where 192.168.1.231 is the server hosting Kuma, and port 3001 is the standard port for that
If you look at this picture you will see that the only thing I modified from @nettoinfo's original advice was to replace "folder" with my desired subfolder. In this case, it was to see an Uptime Kuma status page, whose address would otherwise be: http://192.168.1.231:3001/status/all but now I can hit it by typing http://uptime.domain.name
@nettoinfo commented on GitHub (Feb 23, 2023):
Glad it worked out for you!
José Ferreira Neto
Profissional TI
Músico cristão membro da Assembleia de Deus.
Faça contato comigo | Visite meu site
Emails: @.*** | @.***
Lattes: https://t.co/O3fjQb6Zfb
Twitter's: @netto_info
http://www.facebook.com/profile.php?id=100000106146383MSN:
@.***
Perfil: http://fb.com/nettux
LinkedIn: https://www.linkedin.com/in/nettux/
Em qui., 23 de fev. de 2023 às 17:56, souporman @.***>
escreveu:
@Tamrac-web commented on GitHub (Apr 30, 2023):
Thank!I wanted to take a moment to express my heartfelt thanks for sharing your solution to the problem I was facing. Your generosity in sharing your expertise and knowledge has been invaluable to me, and I am truly grateful for your help.
@nettoinfo commented on GitHub (Apr 30, 2023):
I am grateful to have helped and I make myself available to help. Thank you
for your words and your willingness to respond.
Em dom., 30 de abr. de 2023 11:21, Tamrac @.***>
escreveu:
@nettoinfo commented on GitHub (Apr 30, 2023):
I am grateful to have helped and I make myself available to help. Thank
you for your words and your willingness to respond.
I am a youth computer teacher and I feel fulfilled when I help people solve
problems.
Em dom., 30 de abr. de 2023 11:21, Tamrac @.***>
escreveu:
@nettoinfo commented on GitHub (May 31, 2023):
Guys, see how I put the access to Guacamole here on my NPM server.
The Guacamole server address (Which is a Debian 11) is
http://192.168.10.2:8443/guacamole/
[image: Captura de tela de 2023-05-31 14-35-18.png]
And in NPM...
[image: Captura de tela de 2023-05-31 14-33-36.png]
And
[image: Captura de tela de 2023-05-31 14-33-51.png]
José Ferreira Neto
Profissional TI
Músico cristão membro da Assembleia de Deus.
Faça contato comigo | Visite meu site
Emails: @.*** | @.***
Lattes: https://t.co/O3fjQb6Zfb
Twitter's: @netto_info
http://www.facebook.com/profile.php?id=100000106146383MSN:
@.***
Perfil: http://fb.com/nettux
LinkedIn: https://www.linkedin.com/in/nettux/
Em dom., 27 de nov. de 2022 às 11:39, oywino @.***>
escreveu:
@sahara101 commented on GitHub (Oct 11, 2023):
Hey nettoinfo
Unfortunately your screenshots for guacamole are no longer valid and I am struggling with it :D
I am getting:
https://ssh.xx.xom/guacamole:8060/guacamole:8060/guacamole:8060/guacamole:8060/guacamole:8060/
@nettoinfo commented on GitHub (Oct 11, 2023):
Hello.
You can use the example of @souporman or @Tamrac-web. They just used my example and changed it according to their environment.
If I can help, just leave your message here...
@nettoinfo commented on GitHub (Oct 11, 2023):
Send here the images of how you are placing...
@Rapture1781 commented on GitHub (Oct 13, 2023):
Hi!
I have the same issue with ocs inventory...
If I connect to the site via https using the address name the website is loaded but without the CSS... if I digit the ip address instead of the name it works fine...
If I will find a solution I will post it!
@NazgulCoder commented on GitHub (Nov 6, 2023):
for all the people who need to do what OP wanted to do, I just figured it out this way it works for me
@nettoinfo commented on GitHub (Nov 7, 2023):
Eu faço assim também.
José Ferreira Neto
Profissional TI
Músico cristão membro da Assembleia de Deus.
Faça contato comigo | Visite meu site
Emails: @.*** | @.***
Lattes: https://t.co/O3fjQb6Zfb
Twitter's: @netto_info
http://www.facebook.com/profile.php?id=100000106146383MSN:
@.***
Perfil: http://fb.com/nettux
LinkedIn: https://www.linkedin.com/in/nettux/
Em seg., 6 de nov. de 2023 às 15:49, Nazgul @.***>
escreveu:
@EvilrootNix commented on GitHub (Jan 3, 2024):
Same issue, version 2.10.4
subdomain.domain.com -> IP:port/path and does not show the CSS.
Please, reopen the bug.
@EvilrootNix commented on GitHub (Jan 3, 2024):
Does not work 100%, does not show the CSS.
@continue47 commented on GitHub (Feb 1, 2024):
This is what worked for my setup:
We have a Proxy Host with domain.com forwarding to 192.168.1.1:8000 (can be any IP/port):
Custom configuration in the "Advanced" tab:
Visiting domain.com displays the contents of 192.168.1.1:8000/custom_dir/ without redirecting.
@europacafe commented on GitHub (Feb 2, 2024):
Just to confirm adding the below line in Advanced tab works!...thanks
location = /{return 301 $scheme://$http_host/subfolder/;}@echoparkbaby commented on GitHub (Feb 4, 2024):
I'm trying to get to my pihole and have tried these methods but it's not working for me.
Trying to have it load http://10.0.0.253/admin/login.php but it only loads to the 10.0.0.253
I've tried both ways, setting up a Custom Location (resolves to root page) and the Advanced (also resolved to root page - settings pictured here). Am I missing something in my config?
@europacafe commented on GitHub (Feb 4, 2024):
Strange. Your settings are exactly like mine and it just works.
location = /{return 301 $scheme://$http_host/admin/;}I do not use Customs Location tab.
Did you try clearing cache and browsing history and try again;or too ensure the new settings kicks in, browse in incognito mode.

@echoparkbaby commented on GitHub (Feb 5, 2024):
I tried clearing and using incognito. I should not that I'm trying to access local services using Local DNS on pihole, that routes over to NPM. Other services are working like pve1.local to my promox server, just can't get this one with a folder in it's url to work.
@continue47 commented on GitHub (Feb 5, 2024):
For pihole I'm doing redirect from / to /admin/ with:
@echoparkbaby commented on GitHub (Feb 5, 2024):
thanks. tried that, but it just takes me to the "placeholder page" :(
@SgtErnestBilko commented on GitHub (Feb 12, 2024):
I am having the exact same issue with pihole. I have tried both all of the custom configs mentioned above as well as EvilrootNix's fix.
@europacafe commented on GitHub (Feb 12, 2024):
both what @echoparkbaby and @continue47 suggested work for me. Strange they are not working for some installation.
@SgtErnestBilko commented on GitHub (Feb 12, 2024):
I know it is very strange. I have been thinking this afternoon and was going to suggest it might be an underlying OS issue , but of course it can't be as we are all running a docker image from https://nginxproxymanager.com/ aren't we ?
Maybe it is a docker or npm version issue. I'm running docker 25.0.1 and npm 2.11.1
I'm no expert when it comes to NGINX conf files but does this look right (below) to anyone who knows (i.e. 2 x location. one with = sign and one without ?
@europacafe commented on GitHub (Feb 12, 2024):
I run NPM 2.11.1 as a docker container on Unraid which runs docker engine 20.10.24.
I run NPM container by using br0 bridge (MacVLAN network), with a fixed ip of my main LAN subnet (192.168.2.x). My Pihole is running natively on a Debian VM on Unraid, thus Pihole got a fixed ip of my main LAN subnet too.
Server: Docker Engine - Community
Why do you include conf.d .... in your NPM Advanced tab?
@SgtErnestBilko commented on GitHub (Feb 12, 2024):
"Why do you include conf.d .... in your NPM Advanced tab?"
I don't..... I logged on to the docker shell to see what the conf file looked like.
@SgtErnestBilko commented on GitHub (Feb 13, 2024):
OK.....solved. For me it was a dns issue, my subdomain names were not being resolved.
I took the plunge and replaced pihole with Bind9. There is a good tutorial on Y_tube ... search for "You want a real DNS Server at home? (bind9 + docker)". I'm not saying it was pihole's fault (I was using it as a DNS server) but a clean install of a dns server worked for me.
@MetriXmsk commented on GitHub (Feb 15, 2024):
Works great for me. Thanks!
@0r1as commented on GitHub (Feb 16, 2024):
Had the exact same issue with pihole, not redirecting to /admin no matter what I put in advanced. the fix was quite simple and hit me like a slap in the face lol.
On my pihole (using as a dns server) I had the dns point to the pihole ip, not the nginx ip. fixed that now alls good.
@Felitendo commented on GitHub (Mar 15, 2024):
You are a legend!
@nettoinfo commented on GitHub (Mar 16, 2024):
Excellent!! I feel grateful to have been helpful. Soon I will make a video
about what you can do with NGINX PROXY MANAGER.
Thank for you feedback.
Em sex., 15 de mar. de 2024 18:28, Felitendo @.***>
escreveu:
@erdnuesse commented on GitHub (Mar 17, 2024):
Anyone has the specific setting that fixed CSS for them? Redir to folder works, but the CSS issue bugs me.
My setup has a searxng instance in its default path - bc/ I prefer default paths and settings for everything, makes redeployments easier, but considering the change to / just because NPM doesn't like it at all. : /
@adrianmihalko commented on GitHub (Nov 9, 2024):
I'm trying to achieve the following:
Redirect munin.index.home to http://10.88.1.23/munin/.
It works, but the CSS and images fail to load.
I tried this in Advanced section:
@nettoinfo commented on GitHub (Nov 11, 2024):
Experimente sem a / após o diretório...
José Ferreira Neto
Profissional TI
Músico cristão membro da Assembleia de Deus.
Faça contato comigo | Visite meu site
Emails: @.*** | @.***
Lattes: https://t.co/O3fjQb6Zfb
Twitter's: @netto_info
http://www.facebook.com/profile.php?id=100000106146383MSN:
@.***
Perfil: http://fb.com/nettux
LinkedIn: https://www.linkedin.com/in/nettux/
Em sáb., 9 de nov. de 2024 às 13:08, adrianmihalko @.***>
escreveu:
@nettoinfo commented on GitHub (Nov 11, 2024):
Pode ser um problema de permissão também...
Dê permissão assim:
find . -type d -exec chmod 755 {} ;find . -type f -exec chmod 644 {} ;
José Ferreira Neto
Profissional TI
Músico cristão membro da Assembleia de Deus.
Faça contato comigo | Visite meu site
Emails: @.*** | @.***
Lattes: https://t.co/O3fjQb6Zfb
Twitter's: @netto_info
http://www.facebook.com/profile.php?id=100000106146383MSN:
@.***
Perfil: http://fb.com/nettux
LinkedIn: https://www.linkedin.com/in/nettux/
Em sáb., 9 de nov. de 2024 às 13:08, adrianmihalko @.***>
escreveu:
@fixedzik commented on GitHub (Apr 30, 2025):
Hello,


Currently, the redirection issue for example from pma.dom to http://192.168.0.43/phpMyAdmin/ looks like this:
It is important that there is / at the end!

It is worth noting that I am using NPM version 2.12.3.
I hope I helped those who still had trouble with this.
Regards, fiXed