Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm reading about running uWSGI behind nginx:

Why wouldn't you just expose the uWSGI application directly -- why would you put it behind nginx? (Is this even possible? I'm a newb when it comes to this stuff.)

share|improve this question
up vote 2 down vote accepted

uWSGI is an application server, it is tuned and has options to run custom code in the safer possibile way. nginx is a webserver, and it is tuned and optimized for this kind of job (serving static files and proxying). You can run uWSGI as a webserver too but you will lose the amount of features of nginx (or whatever webserver you want to use) and its efficience in serving static files. There is a massive amount of other reasons (included security) but the main one is the different scope. so you need both. By the way, this is a normal paradigm (web server proxying to application server) for pratically all of the modern deployment solutions.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.