AWS S3静态网站通过Nodejs SDK

时间:2015-10-13 18:12:22

标签: node.js amazon-s3

我正在尝试通过AWS节点SDK在AWS S3上创建静态网站。我正处于putting the bucket website的阶段。我使用以下参数调用{ "Bucket": "xxx.example.com", "WebsiteConfiguration": { "IndexDocument": { "Suffix": "index.html" }, "RoutingRules": [] } }

MalformedXML: The XML you provided was not well-formed or did not validate against our published schema

但是我收到以下错误:

getBucketWebsite

我做错了什么?

当我{ "IndexDocument": { "Suffix": "index.html" }, "RoutingRules": [] } 来自有效网站时,我得到:

{{1}}

1 个答案:

答案 0 :(得分:1)

尝试从您的请求中删除RoutingRules。根据{{​​3}},它需要一些属性。