SSH ile aşağıda yer alan komutları çalıştırmak sorunun çözümü için yeterlidir.

echo -e "proxy_ssl_server_name on;nproxy_ssl_name $host;" > /etc/nginx/conf.d/fixssl.conf && service nginx restart