nginx配置ssl,tomcat配置ssl,nginx无法代理tomcat

前端代码放在nginx中。nginx配置了ssl。tomcat也配置了ssl。
nginx.conf文件配置如图:

img


前端ajax请求如图:

img


tomcat配置如图:

img


tomcat中web.xml配置如图:

img


浏览器报错:

img

前端http开头的url访问的是nginx的80端口,然后代理到tomcat的80端口,返回会出错,把http改为https试试。