You need to enable JavaScript to run this app.
Torch Object Storage

Torch Object Storage

Copy page
Download PDF
13-WEBSITE
0013-00000011
Copy page
Download PDF
0013-00000011
Problem description​
Static website configuration is invalid.​
Root cause​
When setting up the static website configuration, the HttpRedirectCode value in the redirect rules is not within the range [301, 399].​
Example​
When configuring the static website, the HttpRedirectCode value in the redirect rules is set to an invalid value 403.​
​
PUT /?website HTTP/1.1​
Host: <Bucket name>.<TOS endpoint>​
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": [​
{​
"Condition": {​
"KeyPrefixEquals": "abc",​
"HttpErrorCodeReturnedEquals": 403 ​
},​
"Redirect": {​
"HostName": "example.com",​
"HttpRedirectCode": 403,​
"Protocol": "http",​
"ReplaceKeyWith": "redirect.html"​
}​
}​
]​
}​
​
Solution ​
Refer to PutBucketWebsite to correctly construct the static website configuration and ensure the HttpRedirectCode value in the redirect rules is valid.​
Last updated: 2025.10.10 18:58:06