How to forward http request to https in Amazon Route53?

前端 未结 4 2059
一向
一向 2020-12-29 04:09

I have a subdomain in Amazon Route53. Let\'s say secure.example.com

If requests come like https://secure.example.com it is ok but I would like to force

4条回答
  •  感动是毒
    2020-12-29 04:55

    2019 +

    The @Jamaurice Holt solution led me to the way but was a bit short

    Classic Load Balancer

    This solution only work with application load balancer, not classic load balancer, but you can migrate to use a more recent app balancer in EC2 > Load balancers > your load balancer > migrate

    Application Load Balancer

    On the console go to EC2 > Load balancers > your load balancer > listeners

    Here you should have 2 rules: HTTP : 80 and HTTPS : 443

    You just have to:

    • edit the HTTP : 80 rule

    • remove the forward rule and add a redirect rule to port 443

    • save and you should see something like:

提交回复
热议问题