I have an ASP.NET MVC 4 application running behind Amazon\'s elastic load balancer. Everything works OK when I install my SSL certificate on the load balancer and t
It seems that to use this functionality on AWS, you look at the "X-Forwarded-Proto" HTTP header item. If the initial request is HTTPS, the load balancer injects the header and it says "https". If it's HTTP, it says, "http".
Answer found here: http://aws.typepad.com/aws/2010/10/keeping-customers-happy-another-new-elastic-load-balancer-feature.html