I am using an application load balancer to map certain paths to one server (Apache) and other paths to another server (Tomcat).
I made all pages on my site available via https by setting up an https listener on the load balancer.
So that requests from client to load balancer are encrypted but from load balancer to servers are not.
Now, I would also like to redirect all http requests to https.
Are there any suggestions how I can do this?
I can redirect each server separately (ie: redirect tomcat http requests as outlined here and redirect Apache http request with redirect rules). However, I was wondering if there is a simpler way to do it (ie: where I would only have 1 redirect rather than a separate redirect for each server).
Thanks.