What's not working, I suppose, is that the client browser go to https://sub.domain.com (on IP x.x.x.x) that it is forwarded to IP y.y.y.y
Is there any link that explains how to configure that two nginxes (one on x.x.x.x and one on y.y.y.y) so that the https traffic "routes" from x.x.x.x to y.y.y.y?
I found these two posts:
http://stackoverflow.com/questions/2958650/how-to-add-ssl-to-subdomain-that-points-to-a-different-server
http://danconnor.com/post/4f65ea41daac4ed031000004/https_ssl_proxying_nginx_to_nginx
but the first does not show how the configuration and the second is similar to my issue, but it involves a load balancer that is not my case.
My problem is: https://sub.domain.com -> x.x.x.x -> y.y.y.y
Dossi