title: Nginx proxy pass not working with SSL
body: <p>Currently I have 3 virtual machines running on ESXi one with nginx that is controlling requests. One running apache web server with the website which is the first example. The last one is running nextcloud though snap which is ssl encrypted and gives me that error when I try to run it though nginx. How can I run it through nginx with ssl?</p>
  
  <p>This is the the website that works though nginx </p>
  
  <pre><code>    server {
      listen 80;
      server_name URL URL2;
      location / {
              proxy_pass http://192.168.1.7;
              proxy_set_header host  URL;
      }
      }
  </code></pre>
  
  <p>This is the one that doesn't work with ssl</p>
  
  <pre><code>    server {
      listen 80;
      listen 443 ssl;
      server_name URL3;
      location / {
              proxy_pass https://192.168.1.17;
              proxy_set_header host URL3;
      }
      }
  </code></pre>
  
  <p>This is the error</p>
  
  <pre><code>Secure Connection Failed
  The connection to dynanixcloud.ddns.net was interrupted while the page was loading.
  The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
  </code></pre>