AWS-由于位置限制,无法通过HTTPS端点访问S3存储桶 [英] AWS - cannot access S3 bucket via HTTPS endpoint due to location constraint
问题描述
已激活以下服务:
- a
S3
中的ap-east-1
保存我的静态网页的地方, - 在
Route 53上注册的域名
, - 通过
us-east-1
Certification Manager
请求的SSL证书/ code>, - 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:
- a
S3
bucket inap-east-1
where my static web pages are saved, - a domain name registered on
Route 53
, - a SSL certificate requested via
Certification Manager
atus-east-1
, - 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.
这篇关于AWS-由于位置限制,无法通过HTTPS端点访问S3存储桶的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!