location ~ ^/xxx/(.*)? {
         proxy_pass http://localhost:9999/sss/$1;
    }

补充:关于 Get 请求的参数传递

    location ~ ^/xxx/(.*)? {
         proxy_pass http://localhost:9999/sss/$1?$arg;
    }