jse*_*nck 5 amazon-s3 amazon-cloudfront amazon-web-services
我在 AWS 负载均衡器上插入了 Cloudfront。
我在 AWS 文档中看到我可以自定义 Cloudfront 自定义错误页面。我尝试按照 AWS 文档中的建议将这些错误页面存储在 S3 中,但它不起作用。文档说:
We recommend that you store custom error pages in an Amazon S3 bucket even if you're using a custom origin. If you store custom error pages on an HTTP server and the server starts to return 5xx errors, CloudFront can't get the files that you want to return to viewers because the origin server is unavailable.
Run Code Online (Sandbox Code Playgroud)
我的错误页面位于 S3 中,路径为“my-app-bucket/errorpage.html”。
我尝试在 Cloudfront 配置中链接此文件,但出现以下错误:

如果我尝试使用值 /my-app-bucket/errorpage.html,Cloudfront 会将请求重定向到我的 ELB 源,然后我得到 404。
谁能解释我如何进行此配置?
小智 5
这些是来自http://blog.celingest.com/en/2013/12/12/cloudfront-configuring-custom-error-pages/ 的提示
| 归档时间: |
|
| 查看次数: |
6477 次 |
| 最近记录: |