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 Risposta
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
ESPERTO
kentrad
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande