320x100
320x100
nginx의 라우팅 우선순위는 conf 파일의 상단에서 하단 순으로 먼저 적용되고,
location의 prefix에 의해 다시 정렬된다.
다음은 location prefix의 우선순위이다
1. = (exactly)
location = /path
2. ^- (forward match)
location ^- /path
3. -, -* (regular expression case sensitive and insensitive)
location - /path
location -* .(jpg|png|tmp)
4. /
location /path
Reference
Nginx location priority
What order do location directives fire in?
stackoverflow.com
300x250
728x90
'개발 > Computer Science' 카테고리의 다른 글
| ZTNA (Zero Trust Network Access) (1) | 2025.02.02 |
|---|---|
| Authorization Bearer인 이유 (0) | 2025.02.02 |
| IP가 고갈되지 않는 이유 (0) | 2024.11.30 |
| CORS에 대해 알아보자 (Cross-Origin Resource Sharing) (2) | 2024.11.30 |
| http 1.1과 http 2.0의 차이 (0) | 2024.09.28 |