【发布时间】:2015-10-10 08:33:56
【问题描述】:
当我们在 nginx 后面使用 gunicorn 时,总是需要将请求 proxy_pass 给 gunicorn。 但是 Nginx 有一个 wsgi 模块,它允许它发送 wsgi 请求(uwsgi_pass)到 wsgi 应用服务器,看起来 gunicorn 不能直接接受 wsgi 请求,它只是接受 HTTP 请求并将其转换为 wsgi 并调用 wsgi 应用程序。
gunicorn 是否支持直接接受 wsgi 请求?
如果 Nginx 有一些需要发送到 wsgi 应用服务器的 wsgi 环境参数,我该怎么办?
【问题讨论】: