title: HTTP and HTTPS same time (Express.Io)
body: <p>I'm successfully listenin port 443 and can access server over <strong>https</strong>, but I can't access it with <strong>http</strong>.</p>
  
  <pre><code>var fs = require('fs')
  options = {
      ca : fs.readFileSync('./ssl/site.com.pem'),
      key: fs.readFileSync('./ssl/site.com.key'),
      cert: fs.readFileSync('./ssl/site_com.crt')
  }
  
  var app = require('express.io')
  app.https(options).io()
  ....
  app.listen(443);
  </code></pre>
  
  <p>I've tried using http and https modules:</p>
  
  <pre><code>app.http().io();
  http.createServer(app).listen(80);
  https.createServer(options, app).listen(443);
  </code></pre>
  
  <p>But this time <code>socket.io</code> is giving 404 in browser. How can I solve this? I need to use <a href="https://github.com/techpines/express.io" rel="nofollow">Express.Io</a>'s <code>socket</code> connection because application is based on it.</p>