인프런 커뮤니티 질문&답변
인덱스
작성
·
304
답변 2
0
John Ahn
지식공유자
안녕하세요 ~~
특정 파일 하나만 쓰셔도 됩니다
하지만 대부분 설정파일에 여러개를 쓰고 있습니다 ~
공식 문서 부분 설명 부분을 첨부하겠습니다 ~
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




