1 .代理之后通常会发生服务js,无法加载css文件
a .样式地址还是http
tomcat需要增加
valve class name=' org.Apache.catalina.valves.remote IP valve ' remote IP header=' x-forwarded-for ' protocol header
b .地址中没有https端口
valve class name=' org.Apache.catalina.valves.remote IP valve ' remote IP header=' x-forwarded-for ' protocol header
httpsServerPort='2443' /其中2443表示nginx设置的ssl端口,默认值为443
2 .具体操作
nginx配置
tomcat的构成具体如下图所示