Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions terraform/common/alb/https-listener/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ resource "aws_alb_listener" "https" {
certificate_arn = var.https_listener.certificate_arn

default_action {
type = var.https_listener.type
target_group_arn = var.https_listener.default_target_group_arn
type = "fixed-response"

fixed_response {
content_type = "text/plain"
message_body = "Access Denied: Invalid Host"
status_code = "403"
}
}
}

Expand Down