我用js开发了一个单页应用,单页应用部署到服务器上后,访问域名为:http://www.a.com
appserver的请求域名为:http://www.b.com
现在 单页应用 使用 appserver 提供的 /customer/login/account 接口进行登录,post请求地址如下:
http://www.a.com/customer/login/account
然后我在nginx里反向代理了
location /customer {
proxy_pass http://www.b.com;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
}
运行后提示:this domain is not config in store component
@appserver/config/fecshop_local_services/Store.php文件配置的访问域名是http://www.b.com
提示如上错误是appserver没有识别到我nginx的反向代理
我的这种部署架构有问题没有,还是程序的问题?