google-compute-engine - HTTP 负载均衡器自定义错误页面

标签 google-compute-engine google-cloud-platform

如果负载均衡器由于负载或关闭而没有任何子级可分发给它们,目前是否有办法设置自定义错误页面?

最佳答案

没有现成的解决方案。负载均衡器本身不能提供内容,它会为可以做到这一点的实例重定向流量。

但是,您可以尝试探索从 Google Cloud Storage 提供错误页面的可能性:

Load Balancing to Cloud Storage

Content based example

但是,只有在没有其他实例响应时,您才会想出一种重定向到云存储的方法。
我希望这会有所帮助。

关于google-compute-engine - HTTP 负载均衡器自定义错误页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35849162/

相关文章:

google-cloud-platform - 如何从没有外部 IP 的 GCE VM 读取存储桶?

google-cloud-platform - 谷歌云SDK安装: Unzip Failed: Error opening zip file

google-app-engine - *.appspot.com 存储桶被误删除,如何恢复?

google-app-engine - 有人在生产中使用“Google Cloud Storage Fuse”吗?

google-app-engine - 通俗地说 : Relation between Google Apps Script and Google Cloud Platform

ruby - 如何使用 vagrant 在 GCE 实例上允许 HTTP 流量和端口 27017?

python-2.7 - 使用谷歌计算引擎运行 flask 应用程序

tomcat - 使用 tomcat 对 nginx 进行 GCP 健康检查

python - 无法使用 python 脚本切换 gcloud 平台帐户

google-compute-engine - Google 计算引擎实例提供的免费带宽是多少