Created
May 25, 2015 09:14
-
-
Save aloha1003/71f1ba95d9255fbe7d00 to your computer and use it in GitHub Desktop.
Nginx 、uwsgi 、python demo 設定
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 8080 ; | |
location /py/ { | |
access_log /var/log/nginx/py-access.log; | |
error_log /var/log/nginx/py-error.log error; | |
include /etc/nginx/uwsgi_params; | |
uwsgi_modifier1 9; | |
uwsgi_pass 127.0.0.1:9090; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[uwsgi] | |
http-socket = :9090 | |
plugin = python | |
wsgi-file = /var/www/projects/uwsgi_demo/app.py | |
process = 3 | |
cgi-helper =.py=python |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment