[Fixed]-Nginx and uWSGI gives "504 Gateway timeout"


I think you are running uwsgi in http mode --http but you have configured nginx as uwsgi proxy. You should change your uwsgi script to something like:

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

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


Leave a comment