mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #631] Use relative paths instead of absolute ones in frontend - run frontend on host/subdirectory #534
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#534
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 @gf78 on GitHub (Oct 5, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/631
I would like to make the admin frontend available from outside, but do not use a own subdomain therefore.
I'd like to run it behind my.domain.com/nginxproxymanager/.
Because in the frontend all ressources are loaded with absolut urls this is not possible.
@danielriddell21 commented on GitHub (Feb 7, 2021):
Hey @gf78 , did some digging. We can use sub filters to fix this, i used the below:
@chaptergy commented on GitHub (May 12, 2021):
Is there a webpack plugin which can do this at compile-time?
@finalsolarflare commented on GitHub (Nov 17, 2021):
This really helped me as a starting point to figuring out how to proxy port 81 to /nginx-proxy/
So instead of
http://example.com:81I can usehttp://example.com/nginx-proxyIn case anyone else stumbles on this issue, this is how I got it to function:
I couldn't get a Custom Location to work, so under
Proxy Host > Advancedreplace IP with your own IP, replace
nginx-proxywith your desired location.Disclaimer - there are probably things in there that aren't needed, and the script sub_filters will probably break when the js is minified in a future update.
@Aterfax commented on GitHub (Aug 23, 2022):
Anyone got an updated version of this?
@Aterfax commented on GitHub (Aug 24, 2022):
Apparently I do.
This appears to be functional but I give no warranty as my Javascript knowledge is paltry at best.
This seems likely the cause. The minification also made it a total pain in the ass to find the above.
@Sphincz commented on GitHub (Oct 19, 2022):
Thank you very much @Aterfax !!!! 😄
This is the ultimate solution for those who want to have Nginx Proxy Manager Admin-UI behind other nginx proxy (raw).
Finally, after 48 hours of proxy_passing and regex rules that did not work, the solution from @Aterfax worked flawless for me!!!
Thank you very much once again!!!
@chendelin1982 commented on GitHub (Nov 2, 2022):
I have test it, and found it need to add
rewrite ^/nginxproxymanager/?(.*)$ /$1 break;@Aterfax commented on GitHub (Nov 2, 2022):
Yep, that is to be expected as you have chosen the path
/nginxproxymanagerrather than/nginx-proxyIt may be worth "slugifying" this at some point but not right now for me as I am about to have a nap!
@bestK commented on GitHub (Dec 22, 2023):
@github-actions[bot] commented on GitHub (Jul 8, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@github-actions[bot] commented on GitHub (Jul 21, 2025):
Issue was closed due to inactivity.
@Aterfax commented on GitHub (Jul 21, 2025):
Don't nuke this thread please. I suspect some folk may still want the code above.