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?

demandé il y a un an512 vues
2 réponses
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
EXPERT
Steve_M
répondu il y a un an
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.

répondu il y a un an

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