title: Apache and NodeJS over SSL
body: <p>I need to switch from HTTP to HTTPS to be able to use the getUsermedia for webrtc implementation. I've installed certificates on my Apache version 2.2.22 and got it working.</p>
  
  <p>In the website I'm hosting NodeJS is used. Perhaps not the ideal setup but I've encountered problems when socket.io on the client wants to communicate with the NodeJS server.</p>
  
  <p>In the console this message appears:</p>
  
  <pre><code>GET https://mydomain.nl:1900/socket.io/?EIO=3&amp;transport=polling&amp;t=1449219985177-166 net::ERR_CONNECTION_CLOSED 
  </code></pre>
  
  <p>It's obvious to me that the NodeJS server app can't handle requests over HTTPS because it's an HTTP server.</p>
  
  <p>I want to alter that server to be able to serve HTTPS requests using the SSL already in place on the apache webserver.</p>
  
  <p>Is this possible at all?</p>