google-app-engine - App Engine - 指向子域的自定义域

标签 google-app-engine dns subdomain

我听说现在我们可以在 Google App Engine 上使用通配符子域名(我自己没有尝试过,但我相信这是添加的新功能),但是我们可以有一个指向它的域名吗?

所以

new.example.com(有效吗?)

newexample.com -> new.example.com(这有效吗?newexample.com 充当 new.example.com)

按照我设想的 newexample.com 的方式,它的工作方式如下

网址中包含

newexample.com/blog,但应用引擎会将其支持为 new.example.com/blog

我想我是想强调,我并不是在寻找域名转发,其中 newexample.com 只是将用户转发到 new.example.com

谢谢!

更新:澄清一下,我的意思不是裸域,而是像这样的网址

www.newexample.com/blog 可以作为 new.example.com/blog 工作,或者甚至更清楚地,new.example.appspot.com/博客

最佳答案

是的,在 Google 应用中设置自定义域时,您只需使用星号 *.example.com 即可。

To serve your app on all subdomains within a given higher-level subdomain, you can use wildcard subdomain mapping: enter an asterisk in place of the lowest-level name. For example, entering * will cause your app to be served on all subdomains within your registered domain.

参见Custom domains

*.yourappid.appspot.com 域默认有效。

可以将您的应用添加到任意多个不同的 Google Apps 帐户(因此可以使用多个域),但您不能在 Google Apps 中使用“域别名”,因为只能使用来自 google 的主域已使用应用程序帐户。

Applications that use Google App Engine are not available for users at non-primary domains.

参见Limitations for multiple domains

关于google-app-engine - App Engine - 指向子域的自定义域,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5229141/

相关文章:

javascript - 如何使用 HTML/Javascript 传递 URL 参数

android - 设备未从新的 Google Cloud Messaging (NEW GCM) 接收消息

c# - 如何在 Azure 中设置子域来访问文件夹?

python - BadValueError : Property xxxx is required, 即使已经设置了 xxxx 属性? (谷歌应用引擎)

ruby - 在 Ruby 中获取 DNS TXT 记录

azure - 如何在Windows Azure中使用子域?

python - 使用 BOTO3 检索 EC2 实例的公共(public) DNS

google-app-engine - 将子域映射到 Google App Engine 项目中的服务

ruby-on-rails - `rails server` 使用Puma,域名指向127.0.0.1

python - 在 App Engine 上提供可执行文件会更改文件权限