title: How can i proxy to SSL backend without specifiyng cert files?
body: <p>I have an Play 2.1.x application which signs itself using JKS. It's up, running and available at <code>domain.com:9443</code>, I need to proxy it with <strong>nginx</strong>, as there will be more apps on the same machine, (<em>therefore can't run it just on port <code>443</code></em>) I added the nginx config in hope that <code>proxy_pass</code> with <code>https</code> will allow me to just proxy it to client</p>
  
  <pre><code>upstream backend-secure {
      server 0.0.0.0:9443;
  }
  
  server {
          listen 443 ssl;
          server_name domain.com;
  
          proxy_redirect          off;
          proxy_set_header        Host            $host;
          proxy_set_header        X-Real-IP       $remote_addr;
          proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
  
  
          location / {
                  proxy_pass  https://backend-secure;
          }
  
  }
  </code></pre>
  
  <p>Unfortunately when trying to open <code>https://domain.com</code> in browser I only get log in <code>nginx/error.log</code> like:</p>
  
  <blockquote>
    <p>no "ssl_certificate" is defined in server listening on SSL port while SSL handshaking, client: 123.123.123.123, server: 0.0.0.0:443</p>
  </blockquote>
  
  <p>Is there a way to make it working or only option is using common way for nginx SSL + using <code>http</code> backend? </p>
  
  <p><strong>Edit:</strong> It's EV, multidomain certificate if it matters.</p>