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)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 73
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