I've deployed to AWS using the Cloud Formation template.
Using self signed cert.
If I try to access from the server itself I also get a 502:
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.10.3 (Ubuntu)</center>
</body>
</html>
I'm not sure where to check next.
Cheers