Django Broken pipe in Debug mode

前端 未结 8 1113
灰色年华
灰色年华 2020-11-28 23:45

I have django 1.3 on the remote server behind Nginx.

If I run django with apache + mod_wsgi, I can watch errors in apache log files. It\'s ok but I\'d like to have

8条回答
  •  鱼传尺愫
    2020-11-29 00:07

    I was able to get rid of this by

    proxy_buffering off;

    This stops response buffering of proxied server. This leads to other issues of the back-end application being locked for long if the client is on a extremely slow connection.

    To make it conditional for particular requests, use X-Accel-Buffering=no in the response header.

提交回复
热议问题