You need to enable JavaScript to run this app.
导航

0013-00000008

最近更新时间2024.01.05 16:32:20

首次发布时间2024.01.05 16:32:20

问题描述

静态网站配置非法。

问题原因

用户设置静态网站配置时,重定向规则条数超过 50。

问题示例

您进行静态网站配置时,RoutingRules 数组长度超过 50。

PUT /?website HTTP/1.1
Host: bucketname.tos-cn-beijing.volces.com
Date: Fri, 30 Jul 2021 13:59:18 GMT
Authorization: authorization xxx

{
    "RedirectAllRequestsTo": {
        "HostName": "example.com",
        "Protocol": "https"
    },
    "IndexDocument": {
        "Suffix": "index.html",
        "ForbiddenSubDir": "false"
    },
    "ErrorDocument": {
        "Key": "error.html"
    },
    "RoutingRules": [...此处省略51条重定向规则...]
}

解决方案

参照 PutBucketWebsite,正确构造静态网站配置,确保重定向规则条数不超过 50。