【问题标题】:Why are GCP Cloudbalancer Bucket returning a XML?为什么 GCP Cloudbalancer 存储桶返回 XML?
【发布时间】:2020-04-21 02:46:45
【问题描述】:

最近,我创建了一个带有 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>
...

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

【问题讨论】:

    标签: gcp-load-balancer


    【解决方案1】:

    需要在google cloud中声明主页面和错误页面 gsuit 示例:

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

    More information here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-08-12
      • 2019-11-24
      • 2018-11-04
      • 2014-09-04
      • 1970-01-01
      • 2021-06-13
      • 1970-01-01
      相关资源
      最近更新 更多