nginx 환경 설정
상당히 설명이 잘 된 포스팅이 있어 해당 포스팅을 먼저 소개하고, 추가로 남기고 싶은 내용을 적었습니다.
https://icarus8050.tistory.com/57
[Nginx] Nginx 이해하기
Nginx? Nginx는 간단하게 말씀드리자면 경량 웹 서버입니다. 클라이언트로부터 요청을 받았을 때 요청에 맞는 정적 파일을 응답해주는 HTTP Web Server로 활용되기도 하고, Reverse Proxy Server로 활용하여
icarus8050.tistory.com
index 페이지 설정 (웹 페이지의 시작)
- root: index 페이지가 위치한 디렉토리를 의미. 즉, /html 에 있다는 뜻
- index: index 페이지가 될 html 파일명을 의미
- 종합하면 http://웹서버IP 로 접속 시 /html/index.html 파일 또는 /html/index.htm 파일을 읽겠다는 뜻이다.
http {
server {
location / {
root html;
index index.html index.htm;
}
}
}
[그 외 Reference]
https://juneyr.dev/nginx-basics
'Back-End > Server' 카테고리의 다른 글
[Nginx] React 배포시 Reverse-Proxy 설정 방법 (0) | 2022.01.09 |
---|---|
[WebServer] Nginx 설치 및 구동 (EC2 Amazon Linux2 버전) (0) | 2022.01.08 |
[Nginx] Nginx 설치 및 구동 (Mac OS 버전) (0) | 2022.01.04 |
[AWS] EC2 Java8 설치, Timezone 변경, Hostname 변경 (0) | 2022.01.03 |
[Nginx] Nginx 설치 및 구동 (Windows 버전) (1) | 2022.01.02 |