We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在做前端开发时,前端的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'
The text was updated successfully, but these errors were encountered:
同问 @sorrycc
Sorry, something went wrong.
No branches or pull requests
在做前端开发时,前端的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'
The text was updated successfully, but these errors were encountered: