我正在使用 Loadbalancer 在 Google Cloud Storage Bucket 上设置一个静态站点。该站点使用 Gridsome 生成,然后 dist 文件夹保存在存储桶中。
我已经在 [documentation] 中使用 gsutil 设置了索引和错误:https ://cloud.google.com/storage/docs/gsutil/commands/web
现在我面临一个问题,即每个用于访问子目录的 url 如何被重定向到 dir/index.html。这是期望的行为, dir/index.html 页面甚至存在于存储桶中。但我仍然得到 404 - 未找到。
如果我对 url subdir/index.html 进行 curl 我会得到 HTML