GoDaddy 的 HTTPS - AWS S3 静态网站

HTTPS for GoDaddy - AWS S3 static website

我想使用 Amazon S3 和 GoDaddy 托管一个仅限 HTTPS 的静态网站。这是我到目前为止所做的:

 a) Created S3 static website at Amazon 
 b) Added S3 static URL at GoDaddy's CNAME records
     CNAME **NAME**: *WWW* and **HOST** : *mywebsite.com.s3-website.ap-south-1.amazonaws.com*  
 c) Then in forwading **Domain** section added http://mywebsite.com

现在,我可以使用 http://mywebsite.com 地址访问我的网站。但是,我希望该网站只能通过 HTTPS 访问,为此我从 GoDaddy 购买了 SSL 证书。并在 GoDaddy 上进行了设置。

现在,问题是: 有没有办法使用此设置自动将 http 重定向到 https?

您需要使用 CloudFront 为 Amazon S3 存储桶提供 HTTPS 请求。 Amazon 发布 Key Differences Between the Amazon Website and the REST API Endpoint 以强调 s3 上的网站托管不支持 SSL 连接。

但是,Amazon tutorial 将引导您创建 CloudFront 分配以使用 HTTPS 提供 s3 内容。