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

1개 답변
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
전문가
kentrad
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인