AWS-由于位置限制,无法通过HTTPS端点访问S3存储桶 [英] AWS - cannot access S3 bucket via HTTPS endpoint due to location constraint

查看:440
本文介绍了AWS-由于位置限制,无法通过HTTPS端点访问S3存储桶的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已激活以下服务:


  1. a S3 中的 ap-east-1 保存我的静态网页的地方,

  2. Route 53上注册的域名

  3. 通过 us-east-1 Certification Manager 请求的SSL证书/ code>,

  4. a CloudFront 发行版,用于启用HTTPS访问我的网页。



如何制作我的页面通过HTTPS全局访问






更新



ap-east-1 中, S3 存储桶的行为似乎不同从中所述的位于其他区域的存储桶中问题

解决方案

这是说为S3提供的URL包含错误的(或没有)区域。



您应使用以下格式:

  bucket-name.s3 .region.amazonaws.com 

您可能错过了该地区。



请参阅:使用Amazon S3起源,MediaPackage渠道和Web分发的自定义来源-Amazon CloudFront


The following services are activated:

  1. a S3 bucket in ap-east-1 where my static web pages are saved,
  2. a domain name registered on Route 53,
  3. a SSL certificate requested via Certification Manager at us-east-1,
  4. a CloudFront distribution for enabling HTTPS access to my web pages.

It is stated in this page that a single SSL certificate should suffice if CloudFront is used.

When I navigate to my URL https://www.example.com in Chrome, the following error is returned.

How to make my pages globally accessible via HTTPS?


Update

It seems that the behavior of S3 buckets in ap-east-1 is different from the buckets located in other regions as stated in my follow up question.

解决方案

It is saying that the URL provided for S3 included the wrong (or no) region.

You should use the format:

bucket-name.s3.region.amazonaws.com

You are probably missing the region.

See: Using Amazon S3 Origins, MediaPackage Channels, and Custom Origins for Web Distributions - Amazon CloudFront

这篇关于AWS-由于位置限制,无法通过HTTPS端点访问S3存储桶的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆