I was able to go to the home page but getting a 404 on other routes. I tried suggestions on stack overflow like try_files $uri $uri/ index.html and tried other variation of it but still cant get to work.
I know I am not answering your question, but if you're delivering static JS/CSS/HTML files to people, would it be easier and faster to host it with something like netlify.com or zeit.co?
Both have generous free plans (I use netlify personally) and it is just ridiculous how easy and fast you can get set up.
share your nginx config
I know I am not answering your question, but if you're delivering static JS/CSS/HTML files to people, would it be easier and faster to host it with something like netlify.com or zeit.co?
Both have generous free plans (I use netlify personally) and it is just ridiculous how easy and fast you can get set up.
did you double check that your root is set to the build directory of your react app?
for instance my project is at:
/var/www/portfolio
when I build the react app it goes to:
/var/www/portfolio/build
another comment, your '/' maybe in the wrong place
mine looks like: