问题描述:

There seems to be mod_wsgi module in Apache and uwsgi module in Nginx. And there also seems to be the wsgi protocol and uwsgi protocol.

I have the following questions.

  1. Are mod_wsgi and uwsgi just different implementations to provide WSGI capabilities to the Python web developer?
  2. Is there a mod_wsgi for Nginx?
  3. Does uwsgi also offer the application(environ, start_response) entry point to the developers?
  4. Is uwsgi also a separate protocol apart from wsgi? In this case, how is the uwsgi protocol different from the wsgi protocol?

网友答案:
  1. They are just 2 different ways of running WSGI applications.
  2. Have you tried googling for mod_wsgi nginx?
  3. Any wsgi compliant server has that entry point, that's what the wsgi specification requires.
  4. Yes, but that's only how uwsgi communicates with Nginx. With mod_wsgi the Python part is run from within Nginx, with uwsgi you run a separate app.
相关阅读:
Top