OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: Mks on April 22, 2021, 08:47:26 PM

Title: [NGINX] One URL multiple applications base on path
Post by: Mks on April 22, 2021, 08:47:26 PM
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






Title: Re: [NGINX] One URL multiple applications based on path
Post by: Mks on April 24, 2021, 10:06:13 AM
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
Title: Re: [NGINX] One URL multiple applications base on path
Post by: r.schoepf on May 07, 2021, 01:40:01 PM
same problem and i dont find the solution... if someone could help please