nginx配置反向代理,代碼以下:python
location / { include uwsgi_params; uwsgi_pass 127.0.0.1:9000; uwsgi_param UWSGI_SCHEME $scheme; uwsgi_param UWSGI_SOFTWARE nginx/$nginx_version; }
uwsgi配置以下:nginx
[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則不行,不知道爲啥,有知道能夠告訴我,謝謝app