I have a web app using Angular 2 being served by node/express with an nginx reverse proxy. I need to paste a specific link in the browser and have it just go to that page in my angular 2 app. I can't seem to get it figured out, the link would be something like: http://example.com/test1
I have the routes setup in angular and it will work locally just not on the live site.
I've added this to NGINX configure but it doesn't work as I'm probably missing something for express.
location / {
try_files $uri$args $uri$args/ /index.html;
}
I've seen a few things on here for hashhistory, but I'd just like to use the angular default pushlocation. I just can't find steps on how to configure everything.
Thanks for any help.
via user3712837
No comments:
Post a Comment