react router browserhistory 关于 Nginx配置

react-router + redux 做的项目,当然路由用的是browserHistory

服务器端nginx配置如下

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

try_files

  • 语法: try_files file1 [file2 … filen] fallback
  • 默认值: 无
  • 作用域: location
posted @ 2018-08-09 11:37  李先生不卖牛肉面  阅读(2380)  评论(0编辑  收藏  举报