I am running Tomcat behind NGINX SSL, Can anyone tell me what is the best setting for tomcat server.xml ?
Should I add the properties :
< secure="true"
proxyName="localhost"
proxyPort="443"
scheme="https" >
to my connector in Tomcat OR
<Valve className="org.apache.catalina.valves.RemoteIpValve"
internalProxies="127.0.[0-1].1"
remoteIpHeader="x-forwarded-for"
requestAttributesEnabled="true"
protocolHeader="x-forwarded-proto"
protocolHeaderHttpsValue="https" />
to my <engine>
Which setting is better ?