반응형
AWS CloudFront ALB domain Redirect 설정 Tip
■ 개요
chandler.com 에서 exmaple.com/chandler 형태로 보내는 경우
도메인 redirect 를 위해 다음과 같이 구성
- route53 → cloudfront → ALB
■ Cache 설정
■ Error
HTTP/1.1 502 Bad Gateway
Content-Type: text/html
Content-Length: 587
Connection: keep-alive
Server: CloudFront
Date: Sun, 29 May 2016 14:32:18 GMT
Age: 23
X-Cache: Error from cloudfront
Via: 1.1 123456789012345678901234567890ab.cloudfront.net (CloudFront)
X-Amz-Cf-Id: abcdefghijklmnopqrstuvwxyz-Qhg==
캐시 설정을 제대로 하지 않을 경우 계속해서 502 / 503 에러가 발생합니다.
■ Reference
내용 | URL | |
502 / 503 에러 | https://serverfault.com/questions/779703/cloudfront-distribution-with-elb-origin-http-502-bad-gateway |
by mkdir-chandler
728x90
반응형
'Ops > AWS' 카테고리의 다른 글
AWS ElastiCache Redis Security Update 가이드 (다운타임 확인) (0) | 2023.04.05 |
---|---|
AWS ElastiCache Redis Security Update 20230315-002 (0) | 2023.04.04 |
AWS CloudFront S3 Origin 연결 방법 (0) | 2023.04.01 |
AWS CloudFront Tip (참고사항) (0) | 2023.03.31 |
AWS CloudFront lambda@edge 트리거 방식 (0) | 2023.03.30 |