1、修改tomcat配置server.xml,让它从请求头中的X-Forwarded-Proto读取
<!-- xpath://Server/Service/Engine/Value -->
<Valve className="org.apache.catalina.valves.RemoteIpValve" remoteIpHeader="X-Forwarded-For" protocolHeader="X-Forwarded-Proto" protocolHeaderHttpsValue="https"/>
2、nginx.conf增加配置
location / { ... proxy_set_header X-Forwarded-Proto $scheme; ... }
来源:https://blog.csdn.net/tjcyjd/article/details/70185224
标签:...,Forwarded,tomcat,Proto,nginx,https From: https://www.cnblogs.com/chendeming/p/16945489.html