title: socket.io.js not found on production instance
body: <p>First of all, yes I know there are many related question on SO for similar problem. I have gone through almost all of them before asking.</p>
  
  <p>I have a very strange issue where, socket.io.js file is not served by server on production instance.</p>
  
  <p>Exactly same code works on my development instance. The only difference between development annd Production instance is that, produciton instance runs using nginx proxy but I do not think that should be the problem.</p>
  
  <p>When I am trying to access <a href="https://my-host-name.com/socket.io/socket.io.js" rel="nofollow noreferrer">https://my-host-name.com/socket.io/socket.io.js</a></p>
  
  <p>I get Error "404 Not Found"</p>
  
  <p>Nginx log gives this error:</p>
  
  <blockquote>
    <p>2017/08/17 12:01:28 [error] 30437#0: *2298619 open()
    "/data/api/current/socket.io/socket.io.js" failed (2: No such file or
    directory), client: 10.xxx.x.xx, server: , request: "GET
    /socket.io/socket.io.js HTTP/1.1", host: ""</p>
  </blockquote>
  
  <p>I am completely clueless whats going wrong here. Can any one please help me?</p>
  
  <p>Here is my socket confiiguration on app.js file:</p>
  
  <pre><code>var server = https.createServer(app.get("httpsOptions"), app);
  var socket = require('socket.io');
  var io = socket.listen(server);
  server.listen(app.get('port'), function(){
      logger.info("Starting the express app...");
      logger.info("Express server listening on port " + app.get('port'));
  });
  require('./routes/sockets/base')(io); // separating the socket.io related code in separate file
  </code></pre>
  
  <p>I can see my node_modules already has socket.io, socket.io-adaptor, socket.io-client and socket.io-parser</p>