Nginx + uwsgi 时,替换路径。
摘要:
{ # Django api use uwsgi location /api/ { # /api/hello ==> /hello rewrite ^/api/(.*) /$1 break; #关键是这行做替换 留意最后面是 break; include uwsgi_params; uwsgi_pass ... 阅读全文
posted @ 2017-03-29 22:46 aozima 阅读(459) 评论(0) 推荐(0) 编辑