Apache + mod_wsgi vs nginx + gunicorn

前端 未结 4 1502
天涯浪人
天涯浪人 2021-01-31 17:04

I want to deploy a django site (it is the open source edx code on github).

I am faced with choosing between using

  1. Apache with mod_wsgi
  2. nginx with
4条回答
  •  孤城傲影
    2021-01-31 17:30

    Nginx is a really light and easy to use solution and along with gunicorn it allows us to run any wsgi application and scale it easily. Nginx is better at handling requests since it does not spawn a new process for every request unlike Apache.

    I have written an answer on how to deploy django with nginx for a related question:

    Deploying Django project with Gunicorn and nginx

提交回复
热议问题