nginx and uWSGI gives “504 Gateway timeout”

两盒软妹~` 提交于 2019-12-03 06:52:19

I think you are running uwsgi in http mode --http 0.0.0.0:8002 but you have configured nginx as wsgi proxy change your uwsgi script as:

 uwsgi --socket :8002 --module wsgi --harakiri 5

Note that if you are running nginx and uwsgi on the same machine is better to use unix sockets

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!