Setting up Discourse on a machine with existing Nginx

That’s a different problem.

It likely means that your server has a networking or dns issue.