fix: /season 주소로 바로 들어오면 403(이미지 폴더와 겹침) — nginx 가 폴더를 안 찾게, 사이트맵에 페이지 4개·lastmod, 사이트 이름 alternateName
This commit is contained in:
1 parent
055eec69ef
commit
92620c537b
3 files changed
+8
-3
No files matched your search
@@ -44,6 +44,7 @@
|
|||||||
"@type": "WebSite",
|
"@type": "WebSite",
|
||||||
"@id": "%VITE_SITE_URL%/#website",
|
"@id": "%VITE_SITE_URL%/#website",
|
||||||
"name": "날씨각",
|
"name": "날씨각",
|
||||||
|
"alternateName": ["날씨 각", "Nalssigak"],
|
||||||
"url": "%VITE_SITE_URL%/",
|
"url": "%VITE_SITE_URL%/",
|
||||||
"inLanguage": "ko-KR",
|
"inLanguage": "ko-KR",
|
||||||
"publisher": { "@id": "%VITE_SITE_URL%/#organization" }
|
"publisher": { "@id": "%VITE_SITE_URL%/#organization" }
|
||||||
|
|||||||
+2
-2
@@ -31,9 +31,9 @@ server {
|
|||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
}
|
}
|
||||||
|
|
||||||
# SPA: /indices, /sky 같은 주소로 새로고침해도 index.html을 돌려준다
|
# SPA: /indices, /sky 같은 주소로 새로고침해도 index.html을 돌려준다. 폴더는 안 찾는다 (/season 이 이미지 폴더 public/season 과 겹쳐 403)
|
||||||
location / {
|
location / {
|
||||||
add_header Cache-Control "no-cache";
|
add_header Cache-Control "no-cache";
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri /index.html;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
<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>
|
</urlset>
|
||||||
Reference in new issue
Block a user