본문 바로가기

Ops/AWS

AWS CloudFront ALB domain Redirect 설정 Tip

반응형

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
반응형