合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
框架默认为history模式,生产环境时需要对应的nginx配置支撑。可手动修改为hash模式,值为'hash'。 ~~~ context.$configure.set('routerMode', 'history'); ~~~ history模式下,nginx的支撑配置如下: ~~~ location / { proxy_connect_timeout 900s; client_max_body_size 100m; proxy_send_timeout 900; proxy_read_timeout 900; proxy_intercept_errors on; try_files $uri $uri/ /index.html; //主要是这一行 在出现错误时,指向index.html } ~~~