[fix] deploy: IndexNow 키 파일 location 정규식 — nginx 가 {} 를 블록으로 읽는다

This commit is contained in:
minaChoi committed 2026-09-01 11:40:50 +09:00
1 parent 36b9e25b92
commit 9fe7f3f7f5
2 files changed
+2 -80

No files matched your search

+2 -1
View File
@@ -99,7 +99,8 @@ server {
}
# IndexNow 키 파일. 프리렌더가 루트에 <key>.txt 를 굽고 검색엔진이 대조한다.
location ~ ^/[A-Za-z0-9_-]{8,128}\.txt$ {
# ★ `{8,128}` 같은 수량자는 못 쓴다 — nginx 는 `{`·`}` 를 블록 구분자로 먼저 읽는다.
location ~ ^/[A-Za-z0-9_-]+\.txt$ {
try_files $uri =404;
}