Amazon web services Cloudfront错误:502错误无法满足请求

Amazon web services Cloudfront错误:502错误无法满足请求,amazon-web-services,amazon-cloudfront,amazon-lightsail,Amazon Web Services,Amazon Cloudfront,Amazon Lightsail,我有一个aws lightsail实例。我已经创建了一个发行版,并选择该实例作为我的源。但是当我访问发行版给我的默认域:xxxxxxxxx.cloudfront.net,我收到了以下消息: 502 ERROR The request could not be satisfied. CloudFront wasn't able to connect to the origin. We can't connect to the server for this app or website at th

我有一个aws lightsail实例。我已经创建了一个发行版,并选择该实例作为我的源。但是当我访问发行版给我的默认域:
xxxxxxxxx.cloudfront.net
,我收到了以下消息:

502 ERROR
The request could not be satisfied.
CloudFront wasn't able to connect to the origin. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
Generated by cloudfront (CloudFront)
但是,当我使用我的域名访问时,它工作正常,除了我收到的一些请求
x-cache:Miss from cloudfront

在我的发行版中,我设置您的发行版仅使用HTTPS从您的源站获取内容

在我的WordPress配置中,我已经安装了SSL证书,并将https配置为:

define('WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST'] . '/');
define('WP_HOME', 'https://' . $_SERVER['HTTP_HOST'] . '/');

我不知道我的网站是否有什么问题,你能帮我吗?

我只是不知道发行版、证书内置的AWS Lightsail有什么问题。 因此,我转到服务AWS Cloudfront并使用证书创建一个发行版,并将我的Lightsail的DNS配置到此发行版。一切正常。
请参阅:

那么该网站在不使用CloudFront的情况下以HTTPS方式工作?您使用的是哪种ssl证书?@Marcin我使用bncert工具生成证书让我们加密。当我在chrome浏览器中检查时,它会显示由:Amazon颁发的
,这两个证书是不同的(让我们对Amazon进行加密),因为它们用于不同的连接。wordpress cloudfront之间使用Let's encrypt证书,cloudfront浏览器之间使用Amazon颁发的证书。