title: nginx: forward ssl connection to another server
body: <p>I have a master nginx server deciding on the incoming server name where to route requests to. For two secondary servers this master nginx server is also holding ssl certificates and keys. The 3rd server is holding his own certificates and keys because there is a frequent update process for those. </p>
  
  <p>My question is now how I can configure the master nginx server to forward all requests to server 3 which are coming in for this server. I cannot copy the certificates and keys from server 3 to the master server as they change too often.</p>
  
  <p><a href="https://i.stack.imgur.com/vMXqo.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/vMXqo.jpg" alt="overview servers and http(s) connections"></a></p>