【发布时间】:2021-08-08 18:36:31
【问题描述】:
我们正在尝试使用负载均衡器通过云 CDN 从云存储中为 Angular 项目提供服务。 我们已经配置了一个负载均衡器和一个云存储桶后端,它指向具有 Angular 项目构建工件的静态内容。我们可以通过点击负载均衡器 http:///index.html 来访问 Angular 项目,该负载均衡器又会重定向到路由路径为“/dashboard”的 Angular 项目仪表板。
现在,当我刷新时,输出出现如下所示的错误
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Code> NoSuchKey </Code>
<Message> The specified key does not exist. </Message>
</Error>
它似乎正在寻找不是我们项目的文件名/dashboard 文件。
有什么办法可以将默认根设置为“index.html”来修复它?
【问题讨论】:
标签: angular google-cloud-platform cdn