标签: nginx配证书代理tomcat (1)

nginx(https)反向代理tomcat(http)的配置 有更新!

nginx(https)反向代理tomcat(http)的配置。nginx和tomcat都需要动配置,nginx.conf 配置画重点:proxy_set_header X-Forwarded-Proto $scheme;      

tomcat  server.xml配置在最后添加如下:<Valve className="org.apache.catalina.valves.RemoteIpValve" remoteIpHeader="x-forwarded-for" remoteIpProxiesHeader="x-forwarded-by" protocolHeader="x-forwarded-proto"/>