小编har*_*rmv的帖子

NGINX + uWSGI连接由Peer重置

我正在尝试使用uWSGI在NGINX上托管Bottle Application.

这是我的nginx.conf

location /myapp/ {
        include uwsgi_params;
        uwsgi_param X-Real-IP $remote_addr;
        uwsgi_param Host $http_host;
        uwsgi_param UWSGI_SCRIPT myapp;
        uwsgi_pass 127.0.0.1:8080;
    }
Run Code Online (Sandbox Code Playgroud)

我正在运行uwsgi

uwsgi --enable-threads --socket :8080 --plugin python -- wsgi-file ./myApp/myapp.py
Run Code Online (Sandbox Code Playgroud)

我正在使用POST请求.对于使用dev Http Client的那个.当我发送请求时,这是无限的

http://localhost/myapp
Run Code Online (Sandbox Code Playgroud)

uWSGI服务器接收请求并打印

[pid: 4683|app: 0|req: 1/1] 127.0.0.1 () {50 vars in 806 bytes} [Thu Oct 25 12:29:36 2012] POST /myapp => generated 737 bytes in 11 msecs (HTTP/1.1 404) 2 headers in 87 bytes (1 switches on core 0)
Run Code Online (Sandbox Code Playgroud)

但在nginx错误日志中

2012/10/25 12:20:16 [error] 4364#0: *11 readv() …
Run Code Online (Sandbox Code Playgroud)

nginx bottle uwsgi

9
推荐指数
3
解决办法
1万
查看次数

标签 统计

bottle ×1

nginx ×1

uwsgi ×1