-
카테고리
-
세부 분야
데브옵스 · 인프라
-
해결 여부
미해결
인덱스
21.06.28 18:12 작성 조회수 196
1
index index.html index.htm
이 3개 잇는 이유가 뭔가요?
index.html은 리액트의 Index.html을 가져오는 거 알겠는데 나머지는 왜 있는지 잘 모르겠네요.
답변을 작성해보세요.
0
John Ahn
지식공유자2021.07.05
안녕하세요 ~~
특정 파일 하나만 쓰셔도 됩니다
하지만 대부분 설정파일에 여러개를 쓰고 있습니다 ~
공식 문서 부분 설명 부분을 첨부하겠습니다 ~
You can list more than one filename in the index
directive. NGINX searches for files in the specified order and returns the first one it finds.
location / {
index index.$geo.html index.htm index.html;
}
https://docs.nginx.com/nginx/admin-guide/web-server/serving-static-content/
0
답변 2