nginx 配置

1.

location /static {
root /srv/www/example.com/public_html/static/;
index index.html index.htm;

}

浏览器: http://localhost 这个找不到东西
http://localhost/static 要这个url

2. uwsgi 配置
参考: https://www.youtube.com/watch?v=dXDyHgWHtkI 【视频教程】
参考:http://uwsgi-docs.readthedocs.org/en/latest/WSGIquickstart.html
http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html
http://www.jianshu.com/p/e6ff4a28ab5a

参考:
https://www.linode.com/docs/websites/nginx/wsgi-using-uwsgi-and-nginx-on-ubuntu-12-04-precise-pangolin

在 “nginx 配置” 上有 1 条评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注