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
preguntada hace 2 años636 visualizaciones
1 Respuesta
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
EXPERTO
kentrad
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas