nginx and uWSGI gives “504 Gateway timeout”

前端 未结 1 2020
没有蜡笔的小新
没有蜡笔的小新 2021-02-08 01:20

I am following the tutorial Setting up Django and your web server with uWSGI and nginx.

uWSGI is up and running

I set up uwsgi to serve my Django project with

1条回答
  •  你的背包
    2021-02-08 02:01

    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

    0 讨论(0)
提交回复
热议问题