我听说现在我们可以在 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.
*.yourappid.appspot.com 域默认有效。
您可以将您的应用添加到任意多个不同的 Google Apps 帐户(因此可以使用多个域),但您不能在 Google Apps 中使用“域别名”,因为只能使用来自 google 的主域已使用应用程序帐户。
Applications that use Google App Engine are not available for users at non-primary domains.
关于google-app-engine - App Engine - 指向子域的自定义域,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5229141/