在不使用自定义域的情况下在AWS S3上设置HTTPS

时间:2019-03-20 02:08:50

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

在我们的S3存储桶中启用静态Web服务器功能后,我得到的内容类似于:

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

但是,我希望能够将此确切域与https一起使用。 到目前为止,我已经找到了很多指南,说明如何使用您自己的自定义域来设置cloudfront,但是我希望能够通过HTTP和HTTPS简单地使用上述域。

2 个答案:

答案 0 :(得分:0)

这不可能。

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

答案 1 :(得分:0)

这是可能的,并发现构建URL的方式如下:

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

或另一个可行的选择是(_if说您的存储桶名称中有圆点):

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

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

相关问题