【问题标题】:HTTPS for GoDaddy - AWS S3 static websiteGoDaddy 的 HTTPS - AWS S3 静态网站
【发布时间】:2018-06-28 10:28:00
【问题描述】:

我想使用 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?

【问题讨论】:

    标签: ssl amazon-s3 https cname


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-03-21
      • 1970-01-01
      • 1970-01-01
      • 2015-08-08
      • 1970-01-01
      • 2017-07-10
      • 1970-01-01
      相关资源
      最近更新 更多