


This is not a problem with Apache like nginx, it buffers slow clients alright. Without this buffering Gunicorn will be easily susceptible to denial-of-service attacks. If you choose another proxy server you need to make sure that it buffers slow clients when you use default Gunicorn workers. ProxyPass / (You still need to specify Alias and for the static and media files, in addition to the above.)Īpparently people are worried because of this warning in the Gunicorn documentation:Īlthough there are many HTTP proxies available, we strongly advise that you use Nginx.

However, Apache+gunicorn makes a great combination, and it’s usually much easier to configure than mod_wsgi.Īll you need is to setup Gunicorn as explained in the Django documentation, enable Apache’s proxying with a2enmod proxy_http, and add this to your Apache VirtualHost block: ProxyPass /static/ ! Many people seem to think that it’s either Apache+mod_wsgi or nginx+Gunicorn.
