前端代码放在nginx中。nginx配置了ssl。tomcat也配置了ssl。nginx.conf文件配置如图:
前端http开头的url访问的是nginx的80端口,然后代理到tomcat的80端口,返回会出错,把http改为https试试。