摘要: handle_path /old-prefix/* { # 将/old-prefix/xxx 请求反向代理到 localhost:9000//new-prefix/xxx rewrite * /new-prefix{path} reverse_proxy localhost:9000 } 阅读全文
posted @ 2022-05-25 17:22 天朝95 阅读(1192) 评论(0) 推荐(0) 编辑
摘要: 直接上配置 example.com {#绑定的地址 域名或者 hostname:prot 形式 handle /api/* { #需要代理得/api/得请求到后台 8000 reverse_proxy backend:8000 } handle { root * /path/to/site #web 阅读全文
posted @ 2022-05-25 17:19 天朝95 阅读(834) 评论(0) 推荐(0) 编辑