After some time and system updates, on both sides (origin server & cloudflare), the root www/html directory started to get the connection timed out (error 522), but subfolders did not get the same error, even on the same domain/site. Now the only app that’s is on the root will throw error 522 always.
its a recently updated apache2 server with phpbb3, which used to work fine.