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: 477

Filed under:
|
|
|
|

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:

  1. Create a uWSGI process for each python file and then create locations in nginx that pass to each uWSGI process.
  2. Create one instance of uWSGI and create a master python file that handles all the different requests.
  3. 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

Related posts about nginx

Related posts about python