PUT Bucket Website 请求示例3 指定index.html为首页,error.html为错误页。将所有前缀为“docs”的请求,全部重定向至本Bucket中前缀为“documents/”的文件上。 PUT /?website HTTP/1.1 xamzcontentsha256: UNSIGNEDPAYLOAD xamzdate: 20220718T085146Z Host: examplebucket.ooscn.ctyunapi.cn Accept: text/html, image/gif, image/jpeg, ; q.2, /; q.2 Connection: keepalive ContentLength: 471 Authorization: SignatureValue index.html error.html docs documents/ 响应示例3 HTTP/1.1 200 OK Date: Mon, 18 Jul 2022 08:51:46 GMT xamzrequestid: 01413e0eca2e4cbf66b2a9bac0bdc09fc2ccaeb0b3aeb7c3a4 ContentLength: 0 Server: CTYUN 请求示例4 指定index.html为首页,error.html为错误页。如果发生404错误,重定向到网址“docs.ooscn.ctyunapi.cn”上前缀为“report404/”的文件。 PUT /?website HTTP/1.1 xamzcontentsha256: UNSIGNEDPAYLOAD xamzdate: 20220718T090739Z UserAgent: Java/1.8.0221 Host: examplebucket.ooscn.ctyunapi.cn Accept: text/html, image/gif, image/jpeg, ; q.2, /; q.2 Connection: keepalive ContentLength: 538 Authorization: SignatureValue index.html error.html 404 docs.ooscn.ctyunapi.cn report404/