How to forward http request to https in Amazon Route53?

前端 未结 4 2058
一向
一向 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:39

    Just a quick update for this question. Whilst in answer to your question no, you can't use route 53 to force HTTPS, this would lead some people to believe that forcing https on AWS hosting wasn't possible.

    You can create a SSL certificate in Certificate Manager(or import your own), host your website where ever(S3/EC2), you then need to setup a CloudFront distribution for your site and import your SSL certificate, you can then use the option Redirect HTTP to HTTPS via the behavior tab in the CloudFront console.

提交回复
热议问题