Skip to content

Commit 10cd944

Browse files
authored
Update nginx.conf
1 parent d2395b1 commit 10cd944

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

nginx.conf

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,16 @@ server {
99

1010
# SPA 라우팅을 위한 설정 (가장 중요)
1111
location /admin/ {
12+
# 1. 요청된 주소(URI)에 해당하는 파일이 있는지 찾아본다.
13+
# 2. 파일이 없으면, 해당 주소의 디렉토리가 있는지 찾아본다.
14+
# 3. 그래도 없으면, 그냥 index.html 을 대신 보여준다.
15+
try_files $uri $uri/ /admin/index.html;
16+
}
17+
18+
location / {
1219
# 1. 요청된 주소(URI)에 해당하는 파일이 있는지 찾아본다.
1320
# 2. 파일이 없으면, 해당 주소의 디렉토리가 있는지 찾아본다.
1421
# 3. 그래도 없으면, 그냥 index.html 을 대신 보여준다.
1522
try_files $uri $uri/ /index.html;
1623
}
17-
}
24+
}

0 commit comments

Comments
 (0)