nginx+uwsgi

原创
2017/06/19 17:12
阅读数 75

nginx配置反向代理,代码如下:

        location / {
            include    uwsgi_params;
            uwsgi_pass 127.0.0.1:9000;
            uwsgi_param UWSGI_SCHEME $scheme;
            uwsgi_param UWSGI_SOFTWARE nginx/$nginx_version;
        }

uwsgi配置如下:

[uwsgi]
socket = 127.0.0.1:9000
chmod-socket = 666
enable-threads = true
master = true
#plugins = python
workers = 2
max-requests = 1000
pidfile = ./uwsgi.pid
daemonize =./uwsgi.log
chdir = /opt/source/python/freshview
module = application
callable = app

目前实验配置socket可以正常工作,而配置http-socket则不行,不知道为啥,有知道可以告诉我,谢谢

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部