Error 502 after enable cloudflare

First and foremost, a 502 is covered at Community Tip - Fixing Error 502 / 504: Bad Gateway