how does ghs.google.com work?

2019-03-18 13:37发布

If I want to bind a domain to my APP on GAE, I should add a CNAME to ghs.google.com. so, I want to know how does ghs.google.com work? 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?

1条回答
戒情不戒烟
2楼-- · 2019-03-18 13:56

Your browser sends a request to Google's server with the Host: yoursite.com header.

Google looks up this hostname in a (very large) database mapping hostnames to websites, then serves the corresponding website.

This database includes App Engine apps, Google Apps aliases, BlogSpot blogs, and other things.

查看更多
登录 后发表回答