Check your error log with sudo cat /var/log/nginx/error.log|less
You can also with WinScp by entering the path /var/log/nginx/
In my case had the syntax error.In my server configuration file I had: server_name {api.mydomain.com};
The correct is: server_name api.mydomain.com;