Skip to content

Commit

Permalink
added error response codes
Browse files Browse the repository at this point in the history
  • Loading branch information
nk57xx committed Nov 14, 2024
1 parent 9ed5a31 commit 3ef2738
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -141,27 +141,27 @@ resource "aws_cloudfront_distribution" "static-website" {
minimum_protocol_version = "TLSv1.2_2021"
#cloudfront_default_certificate = true
}
}

custom_error_response {
error_caching_min_ttl = 86400
error_code = 404
response_code = 404
response_page_path = "404.html"
}
custom_error_response {
error_caching_min_ttl = 86400
error_code = 404
response_code = 404
response_page_path = "404.html"
}

custom "custom_error_response" {
error_caching_min_ttl = 86400
error_code = 403
response_code = 403
response_page_path = "404.html"
}
custom_error_response {
error_caching_min_ttl = 86400
error_code = 403
response_code = 403
response_page_path = "404.html"
}

custom_error_response {
error_caching_min_ttl = 86400
error_code = 500
response_code = 500
response_page_path = "404.html"
custom_error_response {
error_caching_min_ttl = 86400
error_code = 500
response_code = 500
response_page_path = "404.html"
}
}

resource "aws_cloudfront_function" "index" {
Expand Down

0 comments on commit 3ef2738

Please sign in to comment.