I put my site behind Cloudflare last week and it has been working well. But today I woke up to an error message that my site is not accessible.
I am getting generic nginx 403 page when I am trying to access my site (same as Why 403 Forbidden all of a sudden when I go to my site?), along with ‘not secure’ warning in Chrome address bar.
When I disable CDN as shown in the picture, the error disappears.
I am using an SSL cert issued by Letsencrypt in my server and a Full SSL in Cloudflare. I can confirm that Letsencrypt cert has not been expired.
Any ideas how to debug this issue? I am confused as to why it was working and suddenly stopped working when nothing changed.
When I enable the CDN, I get the following error(
ERR_CERT_COMMON_NAME_INVALID) in Chrome’s security tab:
The error I get when I
curl the https version of the site is:
curl: (51) SSL: no alternative certificate subject name matches target host name 'my-domain.com'
I have force-renewed letsencrypt certificate, but the issue still persists if I turn on CDN.