connect a cloudfront distribution to a lightsail wordpress instance after configured HTTPS on it

0

I have configured wordpress instance to use https following this docs

https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-enabling-https-on-wordpress.

I also want to connect a cloudfront distribution to improve performance, but after connect the distribution and have setted https only flag it returns a 502 error saying The request could not be satisfied.

Error message

I have already done the wp config edit for cloudfront distribution described in this docs

https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-editing-wp-config-for-distribution

is there any way to configure a distribution after have setted HTTPS on wordpress instance?

質問済み 7ヶ月前220ビュー
1回答
0

Hello.

A 502 error occurs when CloudFront cannot access your origin.
What settings are you making to access the origin from CloudFront?
Did you specify HTTPS Only when specifying the origin in CloudFront?
https://repost.aws/knowledge-center/cloudfront-502-errors
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-cloudfront-to-custom-origin.html

profile picture
エキスパート
回答済み 7ヶ月前
  • Yes I have specified the HTTPS only flag. So, problem is that instance is using a self signed cerificate created using Let's encrypt

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ