Possible reason for NGINX 499 error codes

前端 未结 15 1655
没有蜡笔的小新
没有蜡笔的小新 2020-11-28 02:54

I\'m getting a lot of 499 NGINX error codes. I see that this is a client side issue. It is not a problem with NGINX or my uWSGI stack. I note the correlation in uWSGI log

15条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 03:11

    One of the reasons for this behaviour could be you are using http for uwsgi instead of socket. Use the below command if you are using uwsgi directly.

    uwsgi --socket :8080 --module app-name.wsgi
    

    Same command in .ini file is

    chdir = /path/to/app/folder
    socket = :8080
    module = app-name.wsgi
    

提交回复
热议问题