uWSGI and Nginx python file handling
Posted
by
user133507
on Server Fault
See other posts from Server Fault
or by user133507
Published on 2012-08-26T00:44:38Z
Indexed on
2012/09/19
3:40 UTC
Read the original article
Hit count: 474
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.
© Server Fault or respective owner