Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Sim0321
Wokr
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
CloudFront
Jump to bottom
Sim0321 edited this page
May 16, 2023
·
1 revision
CloudFront로 배포 404 Error
로컬환경에서는 에러 없이 잘 작동하고 그랬지만 S3 버킷에 저장 후 CloudFront를 이용해 배포를 하니 콘솔창에 404 Error가 뜨는 상황
원인
s3에 SPA(single page Aplication)을 이용해 구성하면 Redirect가 발생해 403/404 같은 Access Denied가 발생.
해결
배포 > 오류페이지 > 사용자 정의 오류 응답 생성 > 응답 페이지 경로(/index.html) 설정 > http 응답 코드(200:확인)
CloudFront 캐싱
분명 s3 버킷에 build된 파일들을 잘 업로드 했는데도 불구하고 적용이 안되는 상황 발생
즉, 캐시된 파일의 TTL(Time To Live, 패킷의 생존 시간)이 아직 남아 있는데, Origin 파일이 변경이 되는 상황
원인
CloudFront는 AWS에서 제공하는 CDN(Content Delivery Network)로, 각 엣지에 Origin 파일을 캐시해서 갖고 있다.
엣지에서 캐시된 파일은 TTL이 있어 TTL이 만료되기 전까지 특별한 요청이 없으면 Origin 파일을 요청하지 않음
해결
무효화 탭을 통해 Object Paths에 전체 경로(/*) 무효화 선언
Wiki pages
Pages
16
Loading
Home
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
api 명세서
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
CloudFront
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
DashBoard
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
To Do navi
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
To Do Page(week navi, todo)
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
ToDoPage
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Tutorial
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
기술적 의사결정
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
서비스소개
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
유효성 검사
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
주간달력
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
주요 기능
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
캘린더
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
컨벤션룰
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
컨포넌트 정보
Uh oh!
There was an error while loading.
Please reload this page
.
Show 1 more pages…
WOKR FE
소개
서비스소개
주요 기능
기획
api 명세서
컨포넌트 정보
컨벤션룰
아키텍처
기술적 의사결정
트러블슈팅
유효성 검사
To-Do navi
Tutorial
CloudFront
기능
주간달력
캘린더
리펙토링
DashBoard
ToDoPage
Clone this wiki locally
You can’t perform that action at this time.