본문 바로가기
카테고리 없음

[NGINX] react 앱 실행 시 404 에러 해결방법

by palbokdev 2023. 7. 18.
location / {
 try_files $uri /index.html;
}

 

nginx.conf 파일에 해당 내용을 추가해주면 된다.

(로컬에서는 정상적으로 동작했으나, NGINX 서버에 올렸을때 발생하는 경우)

 

ref : https://stackoverflow.com/questions/43555282/react-js-application-showing-404-not-found-in-nginx-server