I have an EC2 server powering a HTTPS website for me through an Elastic Load Balancer. I want all connections to be forced through SSL up to the load balancer where the certificate is and then HTTP the rest of the way. Now I have gotten it partly working in that HTTPS terminates at the load balancer and continues onto the server as HTTP however if I attempt to connect to the load balancer using HTTP the site returns as a connection timeout error.
What I want is that if a user connects to the load balancer over a HTTP connection they are redirected to the HTTPS connection for that same domain.
I know that I can do this with rewrite rules in Apache but I want to get it done at the load balancer and not at the individual instance.