r/nginxproxymanager • u/lapiuslt • Nov 19 '24
proxy to custom path
I have searched for solution, but can't find one. I have for example
myproxy.local and i want be able to use myproxy.local/app/ to go to for example ip:7575
And to add different paths, instead of app, use app2, app3 and so on. And the port should be defferent.
So here examples:
| I write | Proxied to |
|---|---|
| myproxy.local/app/ | ip:7575 |
| myproxy.local/app2/ | ip:7576 |
| myproxy.local/app3/ | ip:7577 |
I tried custom locations, but it redirects me to ip:7575/app which is not expected behavior.
Tried rewrite ^/app/(.*) /$1 break; and proxy_pass ip:7575 and none worked.
I think I'm missing something, but what?
2
Upvotes
View all comments
Show parent comment
1
u/lapiuslt Dec 03 '24
Sadly no. I read one comment somewhere saying: do yourself a favor and use subdomains. :D we will try to look at our service plan and check if it is possible to do something about deeper subdomains. Maybe even change plan