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
已提問 2 年前檢視次數 636 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南