为什么我的谷歌应用引擎有域名“my-project.df.r.appspot.com"? [英] why my google app engine has domain name 'my-project.df.r.appspot.com'?

查看:14
本文介绍了为什么我的谷歌应用引擎有域名“my-project.df.r.appspot.com"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Google Cloud 项目 my-project 中启用了 Google App Engine,默认情况下,App Engine 的 URL 是 my-project.appspot.com,这很好.但是,我发现有时它会变成 my-project.df.r.appspot.com(在我的 App Engine 控制台中),这使得我的应用引擎项目在内部使用完全不同的主机名.

I have Google App Engine enabled in a Google Cloud project my-project, the App Engine's URL is my-project.appspot.com by default, which is fine. However, I found sometimes it becomes my-project.df.r.appspot.com (in my App Engine console), which makes my app engine project using a completely different host name internally.

有人知道这是怎么回事吗?谢谢.

Does anybody know what's going on here? Thanks.

推荐答案

你看过这个页面了吗?

https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed

您可以通过多种方式针对不同版本和单个 GCP 项目中的服务.

There are several ways you can target different versions & services within a single GCP project.

然而,他们中的大多数人拼写了 -dot- 而不是使用实际的 . 并且他们中的大多数人都将 MY_PROJECT_ID 作为之前的东西.appspot.com.

However, most of them spell out -dot- instead of using an actual . and most of them have MY_PROJECT_ID as the thing before .appspot.com.

您的环境中是否有多个服务或版本在运行?

do you have multiple services or versions running in your environment?

编辑 - 我在 Appengine Flex 发行说明中找到了这个:

EDIT - I found this in the Appengine Flex release notes:

App Engine 正在更改您用于向应用发送请求的网址.您现在可以包含区域 ID 以帮助 Google 更有效、更可靠地路由您的请求.例如,应用可以在 https://PROJECT_ID.REGION_ID.r.appspot.com.这个新网址对于现有应用是可选的,很快就会被所有新应用所必需.

App Engine is changing the URLs that you use to send requests to your apps. You can now include a region ID to help Google route your requests more efficiently and reliably. For example, an app can receive requests at https://PROJECT_ID.REGION_ID.r.appspot.com. This new URL is optional for existing apps, and will soon be required for all new apps.

https://cloud.google.com/appengine/docs/灵活的/蟒蛇/发行说明

我没有看到我的弹性服务发生这种情况,但我看到它发生在我的自定义运行时服务上.是你的吗?

I'm not seeing this happen to my flex service, but I am seeing it happen to my custom-runtime service. Is yours either of these?

这篇关于为什么我的谷歌应用引擎有域名“my-project.df.r.appspot.com"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆