Skip to content

Instantly share code, notes, and snippets.

@aloha1003
Created May 25, 2015 09:14
Show Gist options
  • Save aloha1003/71f1ba95d9255fbe7d00 to your computer and use it in GitHub Desktop.
Save aloha1003/71f1ba95d9255fbe7d00 to your computer and use it in GitHub Desktop.
Nginx 、uwsgi 、python demo 設定
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;
}
}
[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