AWS EB - Redirect all traffic to https
问题 My nodejs app is deployed on AWS EB. I already configured the https server and it is working fine. Now I need to redirect every non-https request to https with the www. as prefix, like this: GET example.com => https://www.example.com I'm using nginx and my EB instance is a single instance without load balancer in front of it. I have created a config file in the .ebextensions folder with this code Resources: sslSecurityGroupIngress: Type: AWS::EC2::SecurityGroupIngress Properties: GroupId: {