Cloudfront 405 错误不显示自定义错误页面

问题描述 投票:0回答:0

我在 Cloudfront 上创建了自定义错误页面,其中包含 HTTP 错误代码 404405。我将响应页面路径指向 s3 存储桶中托管的private/index.html

我设法显示 404 的自定义错误页面

但是当我尝试在 Postman 中使用 TRACE 方法访问 Cloudfront 域时,我收到 405,但自定义响应页面路径未显示。它仍然显示 Cloudfront 的默认 405 错误。

amazon-web-services amazon-cloudfront custom-error-pages
© www.soinside.com 2019 - 2024. All rights reserved.