[NGINX] One URL multiple applications base on path

Started by Mks, April 22, 2021, 08:47:26 PM

Previous topic - Next topic
Dear all,

may you can give me some hints, I already searched some time but did not find a solution.

Basic Setup:
2 web applications on different server
app1 on 192.168.1.1:8080
app2 on 192.168.1.2:80

My goal is to have one url and access both applications on different path, e.g

www.mywebapps.com/app1 --> 192.168.1.1:8080
www.mywebapps.com/app2 --> 192.168.1.2:80


I have already configured:
-Two upstream server (app1,app2)
-Two upstreams

Location:
LocationApp1-->URL Pattern: /app1/ --> Upstream Server App1
LocationApp2-->URL Pattern: /app2/ --> Upstream Server App2

HTTP Server
HTTP Server with both locations

I'm just able to access the homepage but no further sites but cannot follow links, login etc., what do I miss, may some URL Rewriting rules?

Thanks

br







Hi community,

any ideas how I can achieve that with NGINX on OpnSense. I've attached some images about my current setup. Any help very appreciated.

Thanks

same problem and i dont find the solution... if someone could help please