We’re having a strange problem setting up a website on AWS using Let’s Encrypt and CloudFlare. The server is running, the website created and Let’s Encrypt certificate succesfully installed, but we always have the same 522 error on CloudFlare side whe trying to load the site.
We tried disabling proxy on CloudFlare, setting encryption to Off, Flexible, Full and Full Strict, but the problem persits.
The only way of getting it to work is by removing Let’s Encrypt certificate from server and setting DNS Only for proxy status on CF panel. This brings our site back to life but without SSL.
A few weeks later we built a similar website on DigitalOcean, the configuration is exactly the same (CloudFlare settings + Let’s Encrypt certificate) and it’s working fine since we provisioned the server.
Are we missing something? The only difference between both sites is the hosting provider.
Thanks a lot!