Welcome! Log In Create A New Profile

Advanced

Setup nginx.conf to route 2 different local wsgi based on the original uri

Posted by endfrank 
Setup nginx.conf to route 2 different local wsgi based on the original uri
October 27, 2021 03:31AM
I have the following architecture on the same machine:
1 wsgi server running flask application on port 1234
1 wsgi server running a dash application on port 5678

1 nginx reverse proxy handling http and https requests

The current configuration of nginx.conf handles only request for the flask application (see attachment).

How to make it possible to route requests to dash or flask based on the incoming uri?

Thanks in advance
Attachments:
open | download - nginx.conf (2.2 KB)
Re: Setup nginx.conf to route 2 different local wsgi based on the original uri
December 06, 2021 10:20AM
Hey there Frank, did you have any luck getting this working? I'm looking for a similar solution.
Re: Setup nginx.conf to route 2 different local wsgi based on the original uri
December 06, 2021 04:53PM
Hi Mark, no I have not! I had to give up for now as I have more urgent tasks to complete. Please share any finding (including docs) that would help.
Re: Setup nginx.conf to route 2 different local wsgi based on the original uri
February 17, 2022 12:31AM
Coming back to this topic as it's getting urgent to find a solution. Anyone has any clue?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 107
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready