title: Angular2 - Nginx route 404 error on cloudfoundry
body: <p>I am using cloud foundry platform to deploy angular2 app using nginx based ststicfile buildpack. </p>
  
  <p>Upon refreshing on a sub route <code>/my-route</code> I am getting 404.
  I want any path such as <code>www.mysite.com/some-ng2-router-path</code> to redirect back to <code>www.mysite.com</code></p>
  
  <p>I have seen several posts about this but I can't figure out how to edit the nginx.conf file on the server, and I do not want to use the hash bang approach. </p>
  
  <p>What do I do? </p>
  
  <p>Thanks </p>