I cannot reproduce the same error anymore.
Your Website is working fine from me end, using Cloudflare nameservers and DNS records proxied .
Could you confirm?
Furhtermore, may I ask which steps for troubleshooting 520 error have you tried already?
@fritex Thanks for the reply! To troubleshoot I tried tweaking the HTTP status code and I found that HTTP 303 returned the same error. Unfortunately Cloudflare is very vague and isn’t explaining exactly what’s wrong (e.g. “invalid HTTP format”). Maybe I will experiment some more. But you said you’re able to access https://arbel.gr/redirectme - could you share what output you get when you curl the page?
I need to have the string \r\n\r\n (two newlines) after the response. It wasn’t working because I only had one newline. I’m not sure why Cloudflare has this requirement but I hope this helps someone!