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, 2020 in AWS by akhtar
• 38,260 points
2,401 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, 2020 by MD
• 95,460 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
• 58,100 points
2,080 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,360 points
664 views
+1 vote
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP