Photo by Glenn Carstens-Peters on Unsplash
AWS ALB Rules that only allow access from your domain
AWS/Application Load Balancer
outline
AWS ALB Rules that only allow access from your domain, not from ALB ip address or dns of ALB.
how-to
Rule1, IF Host is example.com then forward to target group.
<html>
<meta http-equiv="refresh" content="0;url=https://happyengine.tistory.com/"></meta>
</html>
Last - otherwise then return fixed response.
reference
https://docs.aws.amazon.com/elasticloadbalancing/latest/application/listener-update-rules.html
geeksforgeeks.org/how-to-redirect-a-page-to..