502 Bad Gateway for my www.domain.com

I’ve solved this problem myself with a whole afternoon.
I found a tutorial about redirect Ghost-CLI - A fully loaded tool for installation and configuration