mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-28 10:55:54 +03:00
[GH-ISSUE #1563] Forward to a subfolder in the proxy host settings instead of just a port #1181
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#1181
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 @denppa on GitHub (Nov 4, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1563
Is your feature request related to a problem? Please describe.
Some apps like guacamole by apache resides in example.com/guacamole
And in the bare metal nginx server I had before using this I did set it to forward to
127.0.0.1:8080/guacamoleinstead.Describe the solution you'd like
Maybe a option to enter in a custom forwarding address without the http/https, ip, and port selections?
Describe alternatives you've considered
Editing the config manually, it does not stay there once the proxy host is edited from the GUI end. (Unless I am mistaken.)
@chaptergy commented on GitHub (Nov 4, 2021):
I don't really understand, why can't you use a custom location? Set the location
/with schemehttp, forward host127.0.0.1/guacamoleand port8080?@denppa commented on GitHub (Nov 5, 2021):
I did set a custom location / with forwarding to IP/guacamole, but it did not work. I was simply directed to :8080 in which tomcat was running on, no guacamole until I typed in /guacamole
Back in bare metal nginx I just used this, proxy forward http:IP:8080/guacamole with server name http://guac.example.com
And upon visiting it without a sub directory would get me to /guacamole, what do you think I could do on the GUI end to make this happen except editing the file it self?
@chaptergy commented on GitHub (Nov 5, 2021):
Could you please provide the code snippet you used before on the baremetal nginx?
@denppa commented on GitHub (Nov 5, 2021):
Of course, this is it:
@chaptergy commented on GitHub (Nov 5, 2021):
That's pretty much what should be generated when adding the cusom location. It could be the missing trailing slash after
127.0.0.1/guacamole? Try it with another slash added at the end.@denppa commented on GitHub (Nov 6, 2021):
I see what you mean, but instead now I am just redirected to a blank page. Without even the tomcat successful message.
https://i.imgur.com/RBTnRIU.png
npm generated conf:
This does not look right to me, why is there a trailing $variable?
@chaptergy commented on GitHub (Nov 6, 2021):
Are you talking about
$request_uri? That's because when using a variable inproxy_passnginx no longer automatically appends the path to the url, but expects the entire url. So if it was not there, requesting/fooor anything else would always be redirected to justhttp://172.17.0.1:8080/guacamoleinstead ofhttp://172.17.0.1:8080/guacamole/foo.Are you on v2.9.11?
It most likely has to do something with the
$request_uribeing basically empty, so just a slash. Please go ahead and manually edit the config inside the container and replace this line:with these lines
@denppa commented on GitHub (Nov 8, 2021):
Yes I am using the docker image version
2.9.11Does that mean I should pull and update it so I don't have to manually edit?
@denppa commented on GitHub (Nov 9, 2021):
Any ways, for whatever reason adding the custom location just does not work with guacamole client.
And after the update, I saw you used some fancy format for forwarding the proxy host, and I can no longer set the proxy pass as I used to.
I will just bookmark it with the sub directory instead.
@tdp4 commented on GitHub (Dec 16, 2023):
I was able to do this in v2.10.4 with a custom location of
/-> hostname/guacamole/ on port 8080