Option 1 - using RemoteIpValve and x-forwarded-proto
This way will allow users to access FlexDeploy with or without the loadbalancer. 1 In your server.xml in the host section where you will see other valves add an additional valve: <Valve className=“org.apache.catalina.valves.RemoteIpValve” internalProxies=“192\.168\.0\.10|192\.168\.0\.11” remoteIpHeader=“x-forwarded-for” proxiesHeader=“x-forwarded-by” protocolHeader=“x-forwarded-proto” />- Modify the ip addresses shown here to your Load Balancer IP addresses.
- Keep the format of the ip addresses like this in regex format \. instead of ., and use | for OR.