React 刷新后404页面(nginx配置问题)

在nginx.conf上配置一下即可:

server {
...
location / {
      try_files $uri /index.html
   }
}
发布了52 篇原创文章 · 获赞 84 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/qq_39380155/article/details/104848138