server {
listen 80;
server_name www.hehehe.com;
charset utf-8;
location /test {
include uwsgi_params;
uwsgi_pass 127.0.0.1:3031;
}
}
对于 http://hehehe.com/test/index 类似这样的请求 反向代理到了 uwsgi, 是个 django 应用
然后我只想要把 /index 这部分的 url 反向代理过去,,而不是 /test/index
现在 /test/index 导致我的 django 的 url 路由匹配不上。