[英]Set up HTTPS on AWS S3 without using a custom domain
After having enable the Static Web Server function in our S3 bucket I got something which looks like: 在我们的S3存储桶中启用静态Web服务器功能后,我得到了一些看起来像:
http://our-bucket-name.s3-website-ap-southeast-2.amazonaws.com/
However I want to be able to use this exact domain with https. 但是,我希望能够使用https这个确切的域。 So far I have found out a whole heap of guides how to set up cloudfront with your own custom domain, but I want to simply be able to use the above domain over HTTP and HTTPS 到目前为止,我已经找到了一大堆指南如何使用您自己的自定义域设置cloudfront,但我希望能够通过HTTP和HTTPS使用上述域
This is not possible. 这是不可能的。
As noted at Key Differences Between the Amazon Website and the REST API Endpoints , web site endpoints have no support for SSL. 如亚马逊网站和REST API端点之间的关键差异所述 ,网站端点不支持SSL。
Turns this is possible and found out the way one should construct their URLs is like: 转而这是可能的,并找出构建其URL的方式如下:
https://BUCKET-NAME.s3-ap-southeast-2.amazonaws.com/some/path/for/file.png
or another working option is (_if say your bucket has dots in the name)): 或另一个工作选项是(_如果你的桶在名称中有点)):
https://s3-ap-southeast-2.amazonaws.com/BUCKET-NAME/some/path/for/file.png
Of course change your region to match 当然要改变你的地区以匹配
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.