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?

posta 7 mesi fa221 visualizzazioni
1 Risposta
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
ESPERTO
con risposta 7 mesi fa
  • Yes I have specified the HTTPS only flag. So, problem is that instance is using a self signed cerificate created using Let's encrypt

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande