title: How do I serve index.html by default in my http-server
body: <p>I have created a basic AngularJS app in node environment. I am using http-server module for serving the files to browser. Everything is working fine except for the fact that I can't get to serve <code>index.html</code> by default when the server launches.</p>
  
  <p>I checked out npm registry for more options to http server module, and also tried looking for a relevant question on SO but still not able to get what I desire.</p>
  
  <p>Is it possible at all to specify the file to pick up while server starts.</p>
  
  <p>My server basically starts at <code>localhost:8080</code> while I would like <code>localhost:8080/index.html</code></p>
  
  <p>My start script is <code>http-server -a localhost -p 8080 -c-1</code>. If I do something like <code>http-server -a localhost -p 8080 -c-1 index.html</code>, to my surprise it opens the <code>index.html</code> file but serves it on file protocol and not on <code>localhost</code>.</p>
  
  <p>What am I doing wrong  here.</p>
  
  <p>P.S. I visited Angular JS seed and there official example says <code>http-server -a localhost -p 8080 -c-1 ./app</code>. However, when I do this I get error <strong>Windows can't find specified path</strong>, although my structure is similar to the seed.</p>
  
  <p>My structure:</p>
  
  <pre><code>dir
     --app.js
     --index.html
     --node_modules
     --package.json
  </code></pre>