How to redirect EC2 Elastic Load Balancer from HTTP to HTTPS?

+2 votes

Hi Guys,

I am new to the AWS ELB service. I want to redirect all the HTTP requests to the https request on ELB. I have two EC2 instances. I am using Nginx for the server. How can I do that?

Aug 13 in AWS by akhtar
• 25,390 points
136 views

1 answer to this question.

0 votes

Hi@akhtar,

AWS Application Load Balancers now support native HTTP to HTTPS redirect. To enable this in the console, do the following steps.

  1. Go to your Load Balancer in EC2 and tab "Listeners"

  2. Select "View/edit rules" on your HTTP listener

  3. Delete all rules except for the default one (bottom)

  4. Edit default rule: choose "Redirect to" as an action, leave everything as default and enter "443" as a port.

answered Aug 13 by MD
• 57,600 points

Related Questions In AWS

0 votes
1 answer

Configure Application load balancer to route http to https in Elastic beanstalk

From this document: To update your Elastic Beanstalk environment to ...READ MORE

answered Sep 6, 2018 in AWS by Priyaj
• 57,660 points
945 views
0 votes
1 answer
0 votes
1 answer

Does it make sense to have an Amazon Elastic Load Balancer with just one EC2 instance?

Well you are right Elastic Load Balancer is mainly ...READ MORE

answered Mar 20, 2019 in AWS by ArchanaNagur
• 2,320 points
99 views
+1 vote
1 answer