<Connector port="8090" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="443" scheme="https"
proxyName="ca.server.com"
proxyPort="443"/>
====================================================
<Host name="ca.server.com" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="${catalina.base}/webapps/WoSignCA"/>
<!-- 这里非常重要 -->
<Valve className="org.apache.catalina.valves.RemoteIpValve"
remoteIpHeader="X-Forwarded-For"
protocolHeader="X-Forwarded-Proto"
protocolHeaderHttpsValue="https"/>
</Host>