react.js application showing 404 not found in nginx server

后端 未结 7 2240
广开言路
广开言路 2020-12-05 10:07

I uploaded react.js application to server. I\'m using nginx server. Application is working fine. But when I go to other page & refresh, site is not working. It\'s showin

7条回答
  •  自闭症患者
    2020-12-05 10:26

    After many hours I finally got this working with:

    try_files $uri /index.html$is_args$args =404;
    

    The last arg (=404) is what made this work.

提交回复
热议问题