一般是采用前后端分离部署方式,被上一层ng代理后,通过域名访问报错,例如:sqx.com.cn/应用代理路径。

        修改nginx配置,配置前端页面的路径:
location / {
     proxy_pass http://前端页面所在服务器的IP:PORT;
     proxy_set_header Host $host;
     root   html;
     index  index.html index.htm;
 }


 

更多推荐