Angular2 - Nginx route 404 error on cloudfoundry
问题 I am using cloud foundry platform to deploy angular2 app using nginx based ststicfile buildpack. Upon refreshing on a sub route /my-route I am getting 404. I want any path such as www.mysite.com/some-ng2-router-path to redirect back to www.mysite.com 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. What do I do? Thanks 回答1: Are you trying to map routes within your app? e.g. cf map-route