title: Unable to set Image src in html using nodeJS
body: <p>I'm new on nodeJS, I'm unable to set src of img tag in my client side html.
  as my node server is running on port 3000. which is working fine when I hit http://localhost:3000, </p>
  
  <p>below is code of my <strong>server.js</strong> file</p>
  
  <pre><code>var app = require('express')();
  
  var http = require('http').Server(app);
  var io = require('socket.io')(http);
  
  app.get('/', function (req, res) {
      res.sendFile('/var/www/UI-Test/client.html');
  });
  
  io.on('connection', function (socket) {
      console.log('user joined ');
  
  });
  
  http.listen(3000, function () {
      console.log('listening on *:3000');
  });
  </code></pre>
  
  <p>Also code of <strong>client.html</strong> is given below</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;img src="f1.png" /&gt; &lt;!-- also tried "./f1.png" --&gt;
  
  &lt;script&gt;
  var socket = io();
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>It give 404 (Not Found) error even f1.png file is in the same folder as server.js and client.html. My OS is ubuntu by the way.</p>
  
  <p>Thanks in advance</p>