react.js application showing 404 not found in nginx server

后端 未结 7 2236
广开言路
广开言路 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:46

    This worked for me

    location /{
    try_files $uri $uri/ /index.html$is_args$args;
    }
    
    0 讨论(0)
提交回复
热议问题