title: kibana server.basePath results in 404
body: <p>I am running kibana 4.4.1 on RHEL 7.2</p>
  
  <p>Everything works when the kibana.yml file does not contain the setting <code>server.basePath</code>. Kibana successfully starts and spits out the message</p>
  
  <pre><code>[info][listening] Server running at http://x.x.x.x:5601/
  </code></pre>
  
  <p><code>curl http://x.x.x.x:5601/app/kibana</code> returns the expected HTML. </p>
  
  <p>However, when basePath is set to  <code>server.basePath: "/kibana4"</code>, <a href="http://x.x.x.x:5601/kibana4/app/kibana" rel="noreferrer">http://x.x.x.x:5601/kibana4/app/kibana</a> results in a 404. Why?</p>
  
  <p>The server successfully starts with the same logging</p>
  
  <pre><code>[info][listening] Server running at http://x.x.x.x:5601/
  </code></pre>
  
  <p>but </p>
  
  <p><code>curl http://x.x.x.x:5601/</code> returns </p>
  
  <pre><code>&lt;script&gt;
    var hashRoute = '/kibana4/app/kibana';
    var defaultRoute = '/kibana4/app/kibana';
    ...
  &lt;/script&gt;
  </code></pre>
  
  <p><code>curl http://x.x.x.x:5601/kibana4/app/kibana</code> returns
  <code>
  {"statusCode":404,"error":"Not Found"}
  </code></p>
  
  <p>Why does '/kibana4/app/kibana' return a 404?</p>