向我的 Google 应用引擎项目添加子域?

发布于 2024-08-29 20:33:14 字数 465 浏览 4 评论 0原文

我创建了一个谷歌应用程序引擎项目。我刚刚成功将其映射到新域。我的项目的名字是“葡萄”。因此,默认情况下,它发布在 http://www.grape.appspot.com 上。我将其映射到 http://www.grape.com,这非常棒。

现在我想创建一个新的应用程序引擎项目,并将其映射到:

http://api.grape.com

我该如何去做?我认为这是可能的,我只是不确定我会在哪里进行此映射?由于我拥有grape.com,我希望我可以将一个新项目映射到t。

基本想法是让一个项目负责 UI 内容,然后让第二个项目只负责公共 api,这会很棒。

I created a google app engine project. I just successfully mapped it to a new domain. The name of my project is "grape". So by default, it is published at http://www.grape.appspot.com. I mapped it to http://www.grape.com, which is terrific.

Now I'd like to create a new app engine project, and have it mapped to:

http://api.grape.com

how do I go about doing this? I think it is possible, I'm just not sure where I would do this mapping? Since I own grape.com, I am hoping I can map a new project to t.

The basic idea was to have one project which is responsible for the UI stuff, then a second project responsible just for a public api, which would be great.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

爱格式化 2024-09-05 20:33:14

文档中的说明适用于将应用映射到 http:// /api.grape.com 以及将其映射到 http://api.grape.com ——只是不要跳过说明中的第 5 点,因为它说

如果您想在
www 子域
,跳过其余部分
步骤并继续执行此中的步骤 6
列表。

所以我想你在第一部分中跳过了这一点。您只需在 Web 地址 字段中输入 api,如第 5 步所示!

The instruction in the docs apply to mapping an app to http://api.grape.com just as well as to mapping it to http://api.grape.com -- just don't skip point 5 in the instructions, since it says

If you want to serve your app on the
www subdomain
, skip the rest of this
step and continue with step 6 in this
list.

so I imagine you skipped that for your first part. You just need to type api in the Web Address field as shown in step 5!

谁把谁当真 2024-09-05 20:33:14

我刚刚开始工作!

我已经在 example.com 上有了一个项目。我想将其移动到 test.example.com 并将 example.com 指向一个新项目。

我遵循了文档 (http://code.google.com/appengine/docs/domain .html),正如 Alex 建议的那样,将 test.example.com 映射到 GCP 中的现有项目。请注意,您确实需要验证子域的所有权。然后我删除了该项目的现有映射。

我还没有更新域自定义资源记录。我切换到 GCP 中的新项目并将 example.com 映射到它。在步骤(5)中,它说更新您的域名记录,我意识到这两个项目的 A 和 AAAA 记录完全相同。

这让我很困惑。我意识到 GCP 正在内部进行一些到正确项目的映射,这并不全是 DNS 的事情。

为了更新 DNS 记录,我只保留了现有的 DNS 记录,并为 test.example.com 添加了 A 和 AAAA 记录,其值与现有记录相同。当然,所有 DNS 和 GCP 映射都需要一段时间才能通过。

I just got this working!

I already had one project at example.com. I wanted to move it to test.example.com and point example.com to a new project.

I followed the docs (http://code.google.com/appengine/docs/domain.html), as Alex suggested, to map test.example.com to the existing project in GCP. Note that you do need to verify ownership of the subdomain. Then I deleted the existing mapping to that project.

I did not update the domain custom resource records yet. I switched to the new project in GCP and mapped example.com to it. At the step (5) where it said update your domain records, I realized that the A and AAAA records for the 2 projects were exactly the same.

This was confusing to me. What I realized is that GCP is doing some mapping to the correct project internally, it is not all a DNS thing.

To update the DNS records I just left the existing DNS records that I already had and added A and AAAA records for test.example.com with the same values as the existing records. Of course it took a wile for all of the DNS and GCP mapping to flow through.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文