方法一
location /test/ {
proxy_pass http://127.0.0.1/;
}
方法二
location / {
rewrite /test/(.*) /$1 break;
proxy_pass http://127.0.0.1;