Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

转发请求支持自动加uri #97

Open
runc opened this issue Apr 9, 2019 · 1 comment
Open

转发请求支持自动加uri #97

runc opened this issue Apr 9, 2019 · 1 comment

Comments

@runc
Copy link

runc commented Apr 9, 2019

比如我作为前端去请求测试环境后端服务,如果后端服务统一为/admin/xxxx.json,那么我在配置转发请求时,只需要配置一个转发动作,那就是base_rul,而不用为每个请求配置转发规则,尽管你们提供了转发变量管理,但比起自动追加请求uri的需求显然更精准友好,也许我没找到解决上述问题的正确姿势。

@wulv
Copy link

wulv commented May 29, 2019

使用正则匹配不行么?比如:

// 匹配到
diy.youzanyun.com/(.*)
// 转发到
http://test.youzanyun.com/$1

不是特别清楚你的需求,希望能解决你的问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants