为什么 GCP Cloudbalancer Bucket 返回 XML?

Why are GCP Cloudbalancer Bucket returning a XML?

最近,我创建了一个带 index.html 的存储桶,并配置了一个以存储桶为后端的负载均衡器 http。

我做过几次,它一直有效,但在我最后的配置中,它返回一个 XML 结构:

<ListBucketResult>
<Name>bucket_name</Name>
<Prefix/>
<Marker/>
<IsTruncated>false</IsTruncated>
<Contents>
<Key>01.png</Key>
<Generation>1587402672429680</Generation>
<MetaGeneration>1</MetaGeneration>
<LastModified>2020-04-20T17:11:12.429Z</LastModified>
<ETag>"0a3750e6fdb29fcd632e627e2fc34dde"</ETag>
<Size>211</Size>
</Contents>
...

我已经更改了很多东西,但似乎没有用,这个配置有什么问题吗?有什么线索吗?

您需要在google云端声明主页面和错误页面 gsuit 的示例:

gsutil web set -m index.html -e index.html gs://www.example.com

More information here