摘要:
handle_path /old-prefix/* { # 将/old-prefix/xxx 请求反向代理到 localhost:9000//new-prefix/xxx rewrite * /new-prefix{path} reverse_proxy localhost:9000 } 阅读全文
摘要:
直接上配置 example.com {#绑定的地址 域名或者 hostname:prot 形式 handle /api/* { #需要代理得/api/得请求到后台 8000 reverse_proxy backend:8000 } handle { root * /path/to/site #web 阅读全文