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

请求路由问题 #84

Open
dingshixing opened this issue Aug 27, 2020 · 4 comments
Open

请求路由问题 #84

dingshixing opened this issue Aug 27, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@dingshixing
Copy link

dingshixing commented Aug 27, 2020

我若配置路由:[/test/.*],Server为:http://www.abc.com,
访问后网关的请求的地址是http://www.abc.com/test/.....
如何配置才能变成地址为我配置的地址呢:http://www.abc.com/

@beetlex-io
Copy link
Owner

暂不支持转发过程增加前缀路径,这功能后期应该会增加

@beetlex-io beetlex-io added the enhancement New feature or request label Aug 27, 2020
@woodcoal
Copy link

暂不支持转发过程增加前缀路径,这功能后期应该会增加

建议转发的时候将 Server 的 Host 也转发过去

@seamusic
Copy link

是否也不支持以下服务呢?
abc.com/a/api => a.com/api/
abc.com/b/api => b.com/api/

刚测试了一下
^/api.* 可以转到 a.com/api/

^/abc.* 无法转到 a.com/api/

@beetlex-io
Copy link
Owner

可以尝试
^/a/.*
^/b/.*

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

No branches or pull requests

4 participants