바보개발자님 블로그 먼저 보기
https://minholee93.tistory.com/entry/Nginx-Location-Block-Variables?category=926406
[Nginx] Location Block & Variables
이전글에 이어서 Nginx의 configuartion에 대해 알아보도록 하겠습니다. 3. Location Blocks location은 specific uri에 대한 behavior를 정의하며 server 내부에 작성합니다. location block은 nginx.conf 에서..
minholee93.tistory.com
1. Location이 왜 필요한가?
location은 NGINX에서 가장 많이 쓰이는 context이다. 왜? URI of client requests를 처리하기 때문!
앞선 단계의 경우처럼 단순히 매칭되는 파일을 serve 할 때는 location이 크게 필요하지 않다. 단순 serve 이외의 처리를 할 때 location이 필요한 것.
URL와 URI는 다르다.
location block의 개념과 구조
2. Location 설정해보기
location block의 사용법



CF. Match 우선순위

'Tool > Nginx' 카테고리의 다른 글
| [NGINX] 3-4. Configuration-Rewrites, Redirects (0) | 2021.12.18 |
|---|---|
| [NGINX] 3-3. Configuration-Variables 사용하기 (0) | 2021.12.18 |
| [NGINX] 3-1. Configuration-Virtual Host 띄우기 (0) | 2021.12.18 |
| [NGINX] 2-2. Installation-NGINX systemd service로 추가하기 (0) | 2021.12.18 |
| [NGINX] 2-1. Installation- (0) | 2021.12.18 |
댓글