如何使用nginx反向代理设置我的本地网站来执行api请求

时间:2016-03-29 12:33:10

标签: nginx web cross-domain reverse-proxy

现在我只有一个localhost网站:localhost:8080

我需要调用api跨域 这是两个后端api url:

  1. www.example.com/api/site/login
  2. www.example.com/api/site/register
  3. 如何使用nginx在本地设置反向代理?

0 个答案:

没有答案