nginx和uwsgi配合配置

server {
    listen       80;
    server_name  _;

    location / {
           uwsgi_pass 0.0.0.0:9000;(要与uwsgi.ini里的写一致)
           include /etc/nginx/uwsgi_params;(nginx自带就有改成你nginx路径就好)

          uwsgi_send_timeout 120s;

          uwsgi_read_timeout 120s;
    }
}

posted @ 2020-12-21 11:53  Smile☆  阅读(463)  评论(0编辑  收藏  举报