title: Nginx proxy_pass to https
body: <p>we have:
  Ubuntu 16.04<br>
  nginx 1.10.3</p>
  
  <p>i am new to nginx and need help on proxy_pass to https.<br>
  We have clients in internet they call a url for example.</p>
  
  <pre><code>https://testapp.mobios.example.com
  </code></pre>
  
  <p>i want to pass this traffic to my server with the ip address 192.168.0.10.
  On this server i have ssl enabled listen port 9443.</p>
  
  <p>We want use nginx as reverse_proxy.
  My nginx config looks like.</p>
  
  <pre><code>server {  
    listen 443;
    servername testapp.mobios.example.com;
  
    location / {
      proxy_pass https://192.168.0.10:9443;
  }
  }
  </code></pre>
  
  <p>If the clients try to contact the ssl server with <a href="https://testapp.mobios.example.com" rel="noreferrer">https://testapp.mobios.example.com</a> they get nothing.</p>
  
  <p>What i need is just pass https to https. Is SNI a problem here?</p>
  
  <p>Any idea?
  Please help
  ayyoladi</p>