title: Node.js http-server and a rewrite rule
body: <p>I'm using the node.js module http-server for developing an AngularJS application. Now I want to add a rewrite rule for this server: Every request with the pattern: </p>
  
  <pre><code>http://localhost:8000/api/* 
  </code></pre>
  
  <p>should be redirected to </p>
  
  <pre><code>http://apiserver/api/*
  </code></pre>
  
  <p>All other request should be handled by http-server. But I'm not very sure what the best solution is here. I don't want to have an extra Node.js script. I just want to start one server. Is that possible? Is http-proxy a solution?</p>