handle_path /old-prefix/* { # 将/old-prefix/xxx 请求反向代理到 localhost:9000//new-prefix/xxx rewrite * /new-prefix{path} reverse_proxy localhost:9000 }