【发布时间】:2018-06-24 17:28:23
【问题描述】:
我有一个在 AWS 中运行的应用程序。 CloudFront 已启用。
我的应用程序正在使用 HTTP。此外,源协议策略在 CloudFront 中配置为“HTTP”。
但有时我会看到这个错误:
ERROR
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.
Generated by cloudfront (CloudFront)
如果有人能帮我解决这个问题,那就太好了。
【问题讨论】:
-
什么是原始配置? S3 或自定义来源?
-
@PopoiMenenet 是自定义来源
-
@RajKumar S3/EC2/my 台式机可以用作自定义源。它是裸机计算机吗?你能发布你的
curl -I <custom-origin>吗? -
@kintuparantu API 位于通过 CloudFront CDN 路由的 AWS EC2 实例中。我能够卷曲自定义来源,但通过 CloudFront 命中时返回上述错误
-
可能的原因可能是:CF 在不同的端口上与 EC2 通信,或者 EC2 在非默认端口上托管应用程序。 EC2 和 CF 上的端口是 80 吗?
标签: amazon-web-services amazon-ec2 amazon-cloudfront