对象存储
访问网址 | 返回结果 |
http://www.test.com/ | 返回 http://www.test.com/index.html。 |
http://www.test.com/subdir/ | 返回 http://www.test.com/subdir/index.html。 |
http://www.test.com/test.jpg | 正常获取 test.jpg 文件。 |
http://www.test.com/object | 如果存储桶中不存在 object 文件,则返回http://www.test.com/error.html。 |
参数 | 说明 |
默认主页 | 设置访问静态网站时的默认首页,仅支持 .html 格式。示例文件如下: <html> <head> <title>Home Page</title> <meta charset="utf-8"> </head> <body> <h1>欢迎使用TOS</h1> <p>Welcome to TOS</p> </body> </html> |
默认 404 页面 | 访问存储桶内文件发生 404 错误时,返回的页面,非必选。示例文件如下: <html> <head> <title>Welcome to TOS</title> <meta charset="utf-8"> </head> <body> <h1>访问错误</h1> <p>This is error 404 page.</p> </body> </html> |