gpt4 book ai didi

amazon-web-services - CLOUDFRONT EC2 源错误 CloudFront 尝试与源建立连接

转载 作者:行者123 更新时间:2023-12-03 20:22:35 24 4
gpt4 key购买 nike

这个问题在这里已经有了答案:





CloudFront wasn't able to connect to the origin

(4 个回答)


5年前关闭。




我有一个带有自定义源 (EC2) 的 Cloudfront 发行版,当我获取文件时,如 http://xyz.cloudfront.net/assets/abcd.jpg

我收到类似的错误

The request could not be satisfied.

CloudFront attempted to establish a connection with the origin, but either the attempt failed or the origin closed the connection.
CloudFront wasn't able to connect to the origin.

Generated by cloudfront (CloudFront)
Request ID: cDjvMwhz6AhjwOyTgEqwH6KPA3X97Zq1GXQLtvdUlkAWIUDmUAincA==

但是在 10-15 分钟后,如果我尝试获取 rom 相同的 url,那么我工作正常,然后如果我获取新的 url,也会发生同样的事情。我不明白这里有什么问题为什么第一次获取新文件会产生错误?

编辑

问题出在 https,我已经将 cloudfront 分发更改为仅现在为 https 提供服务,cloudfront 总是返回“无法满足请求”。

我的服务器配置正确,我可以使用 https 访问它

我不想使用自定义 CNAME,cloudfront 提供的 dns 名称没问题,我只想在 https 上提供 Assets ,cloudfront 对此有任何自定义 ssl 要求吗?

最佳答案

我有无效的证书链,这就是导致所有麻烦的原因。

关于amazon-web-services - CLOUDFRONT EC2 源错误 CloudFront 尝试与源建立连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39802659/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com