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?

demandé il y a 7 mois221 vues
1 réponse
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
EXPERT
répondu il y a 7 mois
  • Yes I have specified the HTTPS only flag. So, problem is that instance is using a self signed cerificate created using Let's encrypt

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions