fix: /season 주소로 바로 들어오면 403(이미지 폴더와 겹침) — nginx 가 폴더를 안 찾게, 사이트맵에 페이지 4개·lastmod, 사이트 이름 alternateName

This commit is contained in:
minaChoi committed 2026-10-13 09:28:50 +09:00
1 parent 055eec69ef
commit 92620c537b
3 files changed
+8 -3

No files matched your search

+1
View File
@@ -44,6 +44,7 @@
"@type": "WebSite",
"@id": "%VITE_SITE_URL%/#website",
"name": "날씨각",
"alternateName": ["날씨 각", "Nalssigak"],
"url": "%VITE_SITE_URL%/",
"inLanguage": "ko-KR",
"publisher": { "@id": "%VITE_SITE_URL%/#organization" }
+2 -2
View File
@@ -31,9 +31,9 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
# SPA: /indices, /sky 같은 주소로 새로고침해도 index.html을 돌려준다
# SPA: /indices, /sky 같은 주소로 새로고침해도 index.html을 돌려준다. 폴더는 안 찾는다 (/season 이 이미지 폴더 public/season 과 겹쳐 403)
location / {
add_header Cache-Control "no-cache";
try_files $uri $uri/ /index.html;
try_files $uri /index.html;
}
}
+5 -1
View File
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url><loc>https://weather.o2o.kr/</loc></url>
<url><loc>https://weather.o2o.kr/</loc><lastmod>2026-10-13</lastmod></url>
<url><loc>https://weather.o2o.kr/gak</loc><lastmod>2026-10-13</lastmod></url>
<url><loc>https://weather.o2o.kr/sky</loc><lastmod>2026-10-13</lastmod></url>
<url><loc>https://weather.o2o.kr/week</loc><lastmod>2026-10-13</lastmod></url>
<url><loc>https://weather.o2o.kr/season</loc><lastmod>2026-10-13</lastmod></url>
</urlset>