Cause: After CDN is enabled for a private bucket, signature information is included by default for non-anonymous access when you retrieve an object from OSS by using CDN. However, to access the default homepage configured by using static website hosting, the request must be anonymous.
Solution: Use the CDN console to configure the rewrite rule. In the Create Rewrite
Rule dialog box, set Original URI to ^/$
, Final URI to /index.html
, and Flag to Redirect. After the rule is configured, the CDN node returns 302 and www.example.com/index.html
when the client requests www.example.com/
.
For more information about how to configure URI rewrite rules, see Create a URI rewrite rule.