Google cloud storage 静态站点不工作的MainPageSuffix
我一直在寻找这个问题,但没有一个答案对我有帮助 在本教程之后,我创建了一个新的bucket(),它包含一个静态站点,包括index.html和error.html 我使用控制台将这些设置为基本url和未知文件的默认值 当我访问URL时,我会得到文件的XML列表;我应该看到index.html 味觉正确地报告Google cloud storage 静态站点不工作的MainPageSuffix,google-cloud-storage,static-site,Google Cloud Storage,Static Site,我一直在寻找这个问题,但没有一个答案对我有帮助 在本教程之后,我创建了一个新的bucket(),它包含一个静态站点,包括index.html和error.html 我使用控制台将这些设置为基本url和未知文件的默认值 当我访问URL时,我会得到文件的XML列表;我应该看到index.html 味觉正确地报告 {"mainPageSuffix": "/index.html", "notFoundPage": "/error.ht
{"mainPageSuffix": "/index.html", "notFoundPage": "/error.html"}
但如果我访问域时没有路径,则响应为
<Error>
<Code>AccessDenied</Code>
<Message>Access denied.</Message>
<Details>
Anonymous caller does not have storage.objects.list access to the Google Cloud Storage bucket.
</Details>
</Error>
不需要https,不需要负载平衡器。
遗漏了一些东西。
请提供建议。这里有多个问题
编辑:此外,出于好奇,如果上面的功能不起作用,请尝试制作bucket(无统一)。您是否在bucket上配置了网站支持?例如,当您运行命令gsutil web get gs://www.stepwiseRefineration.co.uk时,您会得到什么?这是否回答了您的问题?这些值已设置。彼得·多特_ward@cloudshell:~(help-range-261712)$gsutil web get gs://www.stepwiseRefineration.co.uk{“mainPageSuffix”:“index.html”,“notFoundPage”:“error.html”}文件存在。但是,当我访问没有路径的域时,我只会得到一个XML目录列表,或者“无法列表”,这取决于我设置的访问模式。因此,这些设置不会生效。