how to redirect from HTTP to HTTPS on a Classic Load Balancer

0

Hello everyone, I am a junior front end developer and I am trying to solve the redirect from HTTP to HTTPS on Classic Load Balancer of my angular universal app. Unfortunately my level of knowledge does not allow me to use nginx ( https://aws.amazon.com/it/premiumsupport/knowledge-center/redirect-http-https-elb/ ) , and about node.js (https://gist.github.com/hareeqi/dcc0d409db57668294a7f0d8970aa1e4) I am at the beginning of the study and my knowledge is insufficient to solve the problem. Is there anyone who had the same problem and solved it by following other paths? Does anyone know specific tutorials or can help me by sharing some knowledge? Thanks

Fulvi0
asked 2 years ago626 views
1 Answer
3

Another way to accomplish this is to put a CloudFront Distribution in front of the ELB and then do a redirect from HTTP to HTTPS at CloudFront. See: Requiring HTTPS for communication between viewers and CloudFront

You can also force customers to go through CloudFront instead of directly to the ELB via a dynamic Security Group on the ELB. See: Automatically update security groups for Amazon CloudFront IP ranges using AWS Lambda

profile pictureAWS
EXPERT
kentrad
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions