We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2395b1 commit 10cd944Copy full SHA for 10cd944
1 file changed
nginx.conf
@@ -9,9 +9,16 @@ server {
9
10
# SPA 라우팅을 위한 설정 (가장 중요)
11
location /admin/ {
12
+ # 1. 요청된 주소(URI)에 해당하는 파일이 있는지 찾아본다.
13
+ # 2. 파일이 없으면, 해당 주소의 디렉토리가 있는지 찾아본다.
14
+ # 3. 그래도 없으면, 그냥 index.html 을 대신 보여준다.
15
+ try_files $uri $uri/ /admin/index.html;
16
+ }
17
+
18
+ location / {
19
# 1. 요청된 주소(URI)에 해당하는 파일이 있는지 찾아본다.
20
# 2. 파일이 없으면, 해당 주소의 디렉토리가 있는지 찾아본다.
21
# 3. 그래도 없으면, 그냥 index.html 을 대신 보여준다.
22
try_files $uri $uri/ /index.html;
23
}
-}
24
+}
0 commit comments