React路由页面刷新404

nginx配置

跟vue的配置差不多,

Vue路由页面刷新404问题:https://www.blyoo.com/2934.html

server {
  ...
  location / {
    try_files $uri /index.html;
  }
}