Skip to content

Commit 70c9f87

Browse files
authored
Merge pull request #197 from YAPP-Github/hotfix/PRODUCT-282
[HotFix] 보안 취약점 스캐닝, 크롤링 방지 임시 조치
2 parents f7efd27 + b87f5c3 commit 70c9f87

File tree

1 file changed

+7
-2
lines changed
  • terraform/common/alb/https-listener

1 file changed

+7
-2
lines changed

terraform/common/alb/https-listener/main.tf

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ resource "aws_alb_listener" "https" {
55
certificate_arn = var.https_listener.certificate_arn
66

77
default_action {
8-
type = var.https_listener.type
9-
target_group_arn = var.https_listener.default_target_group_arn
8+
type = "fixed-response"
9+
10+
fixed_response {
11+
content_type = "text/plain"
12+
message_body = "Access Denied: Invalid Host"
13+
status_code = "403"
14+
}
1015
}
1116
}
1217

0 commit comments

Comments
 (0)