Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我如何在多个 aws cdn 存储桶中默认根对象。假设存储桶 S1:abcd.cloudfront.net 默认打开 index1.html,存储桶 S2:abcd.cludfront.net/folder 打开 index2.html
你不能这样做。根对象在分发级别指定,而不是行为或缓存级别。来自文档:
请记住,默认根对象仅适用于您的 CloudFront 分配。
可能您可以使用云函数或 lambda@edge 来修改对您的来源的请求。