react-router + redux 做的项目,当然路由用的是browserHistory
服务器端nginx配置如下
location / { try_files $uri /index.html; }
try_files
语法: try_files file1 [file2 … filen] fallback 默认值: 无 作用域: location