如何通过Cloud DNS API将自定义域映射到应用程序引擎应用程序? [英] How to map a custom domain to an app-engine app via Cloud DNS api?

查看:129
本文介绍了如何通过Cloud DNS API将自定义域映射到应用程序引擎应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何文档解释如何将自定义域映射到托管在App Engine上的应用程序,并且仅通过Cloud DNS API或任何其他Google Cloud API? 我已经为www.my-domain.com添加了CNAME记录。指向ghs.googlehosted.com,并且我在我的域名注册商账户上设置了我从云端DNS获得的域名服务器地址。但我仍然在谷歌服务器上获得404(带有谷歌标志的404页面)。


$ b

[更新]:正如我在其他回复中提到的此线程Amazon Route53服务具有特定种类的别名DNS记录,您可以将域映射到AWS上的任何资源(负载均衡器,EC2实例等)。但我无法在Google云上找到任何此类在App Engine上托管的应用程序的DNS映射。



谢谢。



云端DNS服务负责指定CNAME流量的流向。在Web控制台注册您的域名时,基本上会告诉Google收到来自 www.my-domain.com。的流量后将其重定向到您的应用。 appspot.com



我希望这有助于。

Is there any documentation to explain how to map a custom domain to an app hosted on App Engine and solely via Cloud DNS API or any other Google Cloud API?

I've already added a CNAME record for the "www.my-domain.com." pointing to "ghs.googlehosted.com.", and I've set the name server addresses I've received from the Cloud DNS, on my domain registrar account. But I still get a 404 on a google server (a 404 page with google logo, etc).

[Update]: As I've mentioned in my other reply on this thread, Amazon Route53 service has a specific kind of "alias" DNS record which you can map a domain to any resource on AWS (load balancer, EC2 instance, etc). But I can't find any such DNS mapping on Google Cloud for an app hosted on App Engine.

Thank you.

解决方案

You've completed half the steps actually, as Jarod pointed out, you also need to register your domain in the web console.

The Cloud DNS service takes care of specifying where traffic meant for your CNAME should go. Registering your domain in the web console will essentially tell Google when receiving traffic from www.my-domain.com. to redirect it to your-app.appspot.com.

I hope this helps.

这篇关于如何通过Cloud DNS API将自定义域映射到应用程序引擎应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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