I have an angular 4 SPA app and I'am using docker for production. Looks fine so far. Via terminal I go to /dist folder and from there I let docker point to the content of dist with the following command: docker run -d -p 9090:80 -v $(pwd):/usr/share/nginx/html nginx:alpine
I call: localhost:9090 on the browser and can access the app. The issue is when I reload the page once again and/or as specific route, then I get 404 Not Found and the nginx version e.g. nginx/1.13.5.
I have been searching and found this issue: 404 not found error on Nginx Ask, but unfortunately no solution.
How to work around this and avoid the 404 error? Is it a config steps which I do have to edit?

所有评论(0)