Domain shows a Bad gateway error

Read this CommunityTip. More information on understanding & fixing the same is given here: