向我的 Google 应用引擎项目添加子域?
我创建了一个谷歌应用程序引擎项目。我刚刚成功将其映射到新域。我的项目的名字是“葡萄”。因此,默认情况下,它发布在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
文档中的说明适用于将应用映射到
http:// /api.grape.com
以及将其映射到http://api.grape.com
——只是不要跳过说明中的第 5 点,因为它说所以我想你在第一部分中跳过了这一点。您只需在
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 tohttp://api.grape.com
-- just don't skip point 5 in the instructions, since it saysso I imagine you skipped that for your first part. You just need to type
api
in theWeb Address
field as shown in step 5!我刚刚开始工作!
我已经在 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.