react.js application showing 404 not found in nginx server

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

    try using following commands in sites-enabled

    sudo nano /etc/nginx/sites-available/Your_WEB_Folder
    
    try_files $uri $uri/ /index.html;
    

    Get me some towers now!

提交回复
热议问题