-
-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help with defining custom_error_responses #40
Comments
Ok, with the trial-and-error approach I figured it out.
Multiple error responses should be placed in multiple maps inside the list. |
For anyone coming across this issue in future, you need to include the custom_error_response = [
{
"error_caching_min_ttl" = 3600,
"error_code" = 500,
"response_code" = 500,
"response_page_path" = "/error.html",
},
{
"error_caching_min_ttl" = 3600,
"error_code" = 404,
"response_code" = 404,
"response_page_path" = "/404.html",
},
] I've deployed these custom response objects to Cloudfront today without issue. Hope that helps! 🙇 |
Also valid: custom_error_response {
error_caching_min_ttl = 86400
error_code = 404
response_code = 200
response_page_path = "/index.html"
}
custom_error_response {
error_caching_min_ttl = 86400
error_code = 403
response_code = 200
response_page_path = "/index.html"
} |
When response_page_path is set to "/index.html" what would be the path it looks for? |
Hello Gents,
I am struggling with defining custom_error_responses using your module. Can you please guide how to create custom error response with values kept in one variable:
Thank you in advance.
The text was updated successfully, but these errors were encountered: