ghs.google.com域的机制是什么? [英] What is the mechanism of the `ghs.google.com` domain?
问题描述
如果我想将域名绑定到 GAE (Google App Engine)上的应用程序,则应将CNAME记录添加到 ghs.google.com
.我想了解此域的工作原理.
If I want to bind a domain name to my app on the GAE (Google App Engine), I should add a CNAME record to ghs.google.com
. I'd like to understand how this domain works.
例如,我有一个这样的CNAME:blog.goace.com
→ghs.google.com
,我的应用程序的URL为ace.appspot.com.当我在浏览器中输入 http://blog.goace.com 时,在看到我的Gapp之前会发生什么在屏幕上?
For example, I have a CNAME like this: blog.goace.com
→ ghs.google.com
, and my app's URL is ace.appspot.com. When I type http://blog.goace.com in my browser, what will happen before I see my Gapp on the screen?
推荐答案
您的浏览器使用Host: yoursite.com
标头将请求发送到Google的服务器.
Your browser sends a request to Google's server with the Host: yoursite.com
header.
Google在一个将主机名映射到网站的(大型)数据库中查找该主机名,然后为相应的网站提供服务.
Google looks up this hostname in a (very large) database mapping hostnames to websites, then serves the corresponding website.
此数据库包含App Engine应用程序,Google Apps别名,BlogSpot博客和其他内容.
This database includes App Engine apps, Google Apps aliases, BlogSpot blogs, and other things.
这篇关于ghs.google.com域的机制是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!