Connection timed out Error code 522

1

I recently encountered an issue with my website hosted on an AWS S3 bucket and registered with Cloudflare DNS. For several months, the website worked fine, but now I'm receiving an Error 522. I have already configured the S3 bucket to allow public access, and the website is accessible when accessed directly through the S3 bucket URL. However, when using the domain registered in Cloudflare as a CNAME, I'm getting the Error 522. Can you please help me resolve this issue?

posta un anno fa512 visualizzazioni
2 Risposte
0

According to CloudFlare's website this happens when Cloudflare times out contacting the origin web server, which in your case here would be the S3 service.

S3 is HTTP by default, could you confirm that CloudFlare is respecting this and is not trying to redirect to HTTPS like happened to this user?

profile picture
ESPERTO
Steve_M
con risposta un anno fa
0

Did you have configure a Cloudflare Page Rule or Origin Rule to modify the HTTP Host header (towards S3) ? That's probably needed unless your bucket names matches the hostname used on Cloudflare.

con risposta un anno fa

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