Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm reading about running uWSGI behind nginx: http://projects.unbit.it/uwsgi/wiki/RunOnNginx

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
add comment

1 Answer

up vote 1 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
add comment

Your Answer

 
discard

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.