【问题标题】:Set up HTTPS on AWS S3 without using a custom domain在 AWS S3 上设置 HTTPS 而不使用自定义域
【发布时间】:2019-03-20 02:08:50
【问题描述】:

在我们的 S3 存储桶中启用 Static Web Server 功能后,我得到了如下所示的内容:

http://our-bucket-name.s3-website-ap-southeast-2.amazonaws.com/

但是,我希望能够将这个确切的域与 https 一起使用。 到目前为止,我已经找到了一大堆指南,如何使用您自己的自定义域设置云端,但我只想能够通过 HTTP 和 HTTPS 使用上述域

【问题讨论】:

    标签: amazon-web-services ssl amazon-s3 https


    【解决方案1】:

    这是不可能的。

    如 Key Differences Between the Amazon Website and the REST API Endpoints 所述,网站端点不支持 SSL。

    【讨论】:

      【解决方案2】:

      事实证明这是可能的,并发现构建其 URL 的方式如下:

      https://BUCKET-NAME.s3-ap-southeast-2.amazonaws.com/some/path/for/file.png
      

      或另一个可行的选项是(_如果说你的存储桶名称中有圆点)):

      https://s3-ap-southeast-2.amazonaws.com/BUCKET-NAME/some/path/for/file.png
      

      当然要更改您的区域以匹配

      【讨论】:

        猜你喜欢
        • 2014-03-06
        • 1970-01-01
        • 2017-11-19
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-09-20
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多