When using a load balancer in front of nginx, the real protocol is actually set in a request header X-Forwarded-Proto.
Adding "ajp_scheme_header X-Forwarded-Proto" to the ajp module conf could change the actual value of the scheme passed to tomcat, so all URL created inside the web application will be correct.
When using a load balancer in front of nginx, the real protocol is actually set in a request header X-Forwarded-Proto. Adding "ajp_scheme_header X-Forwarded-Proto" to the ajp module conf could change the actual value of the scheme passed to tomcat, so all URL created inside the web application will be correct.