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?

preguntada hace 7 meses220 visualizaciones
1 Respuesta
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
EXPERTO
respondido hace 7 meses
  • Yes I have specified the HTTPS only flag. So, problem is that instance is using a self signed cerificate created using Let's encrypt

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas