Documentation needed: client side only + nginx + server returning 404 responses
See original GitHub issueWe need to supplement existing v4 documentation to add a quite elementary and common case: client-side (normal) rendering via v4 react-router, returning 404 server error, on custom styled error pages, on nginx.
I trawled many issues (like #3210) and it looks like everybody are rendering server-side or issues get closed too soon to allow meaningful discussion to reach the client-side rendering 404 error codes, or examples are outdated.
What about routing and responding with 404 server errors on client-side rendering web apps on Nginx?
It looks like I the only one on the Internet wanting to make Google-friendly web apps with custom, styled and meaningful 404 error pages returning correct error codes, and do it with minimal effort (client-side rendering using react-router
(no fluxible, reduxible or whatnot), on create-react-app
) 😀
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:9 (4 by maintainers)
Here is a good example: https://gkedge.gitbooks.io/react-router-in-the-real/content/nginx.html
In case someone is still looking for a configuration in Nginx: