简体   繁体   English

在AWS S3上设置HTTPS而不使用自定义域

[英]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.

相关问题 具有自定义域的AWS S3网站 - AWS S3 web site with custom domain 使用 AWS CloudFormation 设置 S3 存储桶级事件 - Set up S3 Bucket level Events using AWS CloudFormation 在没有自定义域的情况下,S3 默认端点可以直接到 HTTPS 吗? - Can S3 default end-point direct to HTTPS without custom domain? AWS S3 CloudFront - 从https://www.domain.com重定向到https://domain.com - AWS S3 CloudFront - redirect from https://www.domain.com to https://domain.com 通过ACM和负载均衡器为AWS Nodejs弹性beantalk设置HTTPS,如何在s3存储桶中为angular设置HTTPS - HTTPS is set up for aws Nodejs elastic beanstalk throught ACM and load balancer, how do i set up the HTTPS for angular in s3 bucket 为什么 AWS 的 Application Load Balancer 在使用 HTTPS 时需要自定义域? - Why does AWS's Application Load Balancer require a custom domain when using HTTPS? 如何使用 aws s3 存储桶获取与自定义域一起使用的 ssl 证书? - How to get ssl certificate working with custom domain using aws s3 bucket? 如何重定向显示在&#39;http://的s3静态网站 <domain> .s3-us-west-2.amazonaws.com / index.html&#39;到&#39;https:// <domain> &#39;没有长名吗? - How to redirect s3 static website showing up at 'http://<domain>.s3-us-west-2.amazonaws.com/index.html' to 'https://<domain>' without the long name? aws s3 公共存储桶自定义域 URL 给出不安全 - aws s3 public bucket custom domain URL gives not secure 在没有 S3 的 aws route 53 中将根域重定向到 www - Redirect root domain to www in aws route 53 without S3
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM