-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
在做前端开发时,前端的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'
Metadata
Metadata
Assignees
Labels
No labels