사용 중인 도메인만 접근 가능한 AWS ALB Rule 설정

2020. 10. 27. 12:51AWS/Application Load Balancer

728x90
SMALL

- 개요

내가 사용중인 도메인이 아닌 IP나 EndPoint로 들어오는 요청을 내 도메인으로 redirect 처리

 

 

- 방법

 ALB Listener Rules를 통해 처리가 가능.

ALB Rules

 

1번 룰 >> 사용하는 호스트를 해당 TG로 보내기
2번 룰 >>  그 외 들어오는 요청은 HTML에서 사용하는 호스트로 리다이렉트

<html> 
<meta http-equiv="refresh" content="0;url=https://happyengine.tistory.com/"></meta>
</html>

 

 

- 참고

https://docs.aws.amazon.com/elasticloadbalancing/latest/application/listener-update-rules.html
www.geeksforgeeks.org/how-to-redirect-a-page-to-another-page-in-html/

 

728x90
LIST