location = /test/ {
proxy_pass https://xxx.xxxx.xxx:8080/;
proxy_redirect default;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
js的访问地址就会变成/test/css/xxx.css
如果把/test/ 换成 /就没有问题
其他还有办法chu'li'mei'you