I've been trying to figure out how to propertly utilize uWSGI with Nginx and have hit a bit of a design roadblock. I'm trying to figure out how my python files should be accessed via uWSGI. I've been able to find 3 different ways to do so:
- Create a uWSGI process for each python file and then create locations in nginx that pass to each uWSGI process.
- Create one instance of uWSGI and create a master python file that handles all the different requests.
- Create one instance of uWSGI and setup dynamic applications
I'm coming from LightTPD where I simply setup rewrites to point at the different python files. I feel like 3 is the closest to that but uWSGI says that it is not the recommended way of going about it.