I am getting this error:
Error frontend: 502 Bad gateway 99.110.244:443 2017/09/28 13:03:51 [error] 34080#34080: *1062 peer closed
Error frontend: 502 Bad gateway
99.110.244:443
2017/09/28 13:03:51 [error] 34080#34080: *1062 peer closed
To improve the other answer I would say that
upstream is really important
upstream
For simple redirect from one domain into another just use this:
http { .... upstream someserver { server your.domain.name.com:443; } location / { proxy_pass https://someserver; } }