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

通配转发请求 #110

Open
taven-liu opened this issue Jan 11, 2017 · 1 comment
Open

通配转发请求 #110

taven-liu opened this issue Jan 11, 2017 · 1 comment

Comments

@taven-liu
Copy link

在做前端开发时,前端的ajax请求通常不能直接访问后台接口,这个时候我们需要做一个反向代理,例如在apache中我们通常这样配置:
ProxyPass /live http://test.live:8080/live
ProxyPassReverse /live http://test.live:8080/live
这样就将所有url包含live的请求转发到 http://test.live:8080/live,那么在这里如何配置呢,能不能类似这样
'POST /live/': ' http://test.live:8080/live/',
'GET /live/': ' http://test.live:8080/live/',
但是这样实际上是不行的,需要对每个请求单独配置
'POST /live/login.do': ' http://test.live:8080/live/login.do'

@miaoyinjun
Copy link

miaoyinjun commented Jan 27, 2017

同问 @sorrycc

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