Problems using Origin TLS certs
I've always used certs created by certbot but learned they are not recommended if you use CF proxy. I recently converted my nginx config to use the origin certs from the CF dashboard. My website login page looks normal but as soon as I try to login it returns
Failed to load resource: the server responded with a status of 520 ()
and Response Status Error Code 520 from /login
. This is very confusing to me as this endpoint either returns 401 if you have the wrong credentials or 200 if it logs you in. What could this be?1 Reply
This is my nginx.conf:
Sometimes I also seem to get 422 (Unprocessable content)
I finally found some context when looking in the response:
There is an issue between Cloudflare's cache and your origin web server. Cloudflare monitors for these errors and automatically investigates the cause. To help support the investigation, you can pull the corresponding error log from your web server and submit it our support team. Please include the Ray ID (which is at the bottom of this error page).
Seems to be related to cache but I just turned off cache and it keeps happening