servere {
location / {
try_files $uri $uri /index.py;
}
location ~ \.py$ {
root /var/www/python;
uwsgi_pass 127.0.0.1:9090;
include uwsgi_params;
}
}
cd /var/www/python
uwsgi -s :9090 -w index.py
servere {
location / {
try_files $uri $uri /index.py;
}
location ~ \.py$ {
root /var/www/python;
uwsgi_pass 127.0.0.1:9090;
include uwsgi_params;
}
}
cd /var/www/python
uwsgi -s :9090 -w index.py
本文标题:uwsgi + nginx
本文链接:https://www.haomeiwen.com/subject/acaqkttx.html
网友评论