【问题标题】:GAE route more domains to my main appengine appGAE 将更多域路由到我的主要 appengine 应用程序
【发布时间】:2018-11-08 10:46:48
【问题描述】:

我需要将不同的域路由到我的主 GAE 应用程序 -> example.appspot.com。

例如:

example2.example.com will route to -> example.com
example3.example.com will route to -> example.com
example2.example.com will route to -> example.com/application2
example3.example.com will route to -> example.com/application3

example、example2 和 example3 是三个完全不同的域。 我读了一些关于 dispatch.yaml 的东西,但不能让它工作! :/ (需要路由,而不是重定向)

几天前,我在我的 DNS 注册商上添加了*.example.com,当我在 Google 上查看我的 appengine 中的“设置”时,我只看到 www.example.com 和 example.com,而不是 *.example.com . 没关系?这段时间正常吗?我也需要在谷歌上手动添加它吗? 如果我去randomString.example.com谷歌提示我这个:

404. That’s an error.
The requested URL / was not found on this server. That’s all we know. 

【问题讨论】:

    标签: php google-app-engine routing


    【解决方案1】:

    您需要在 dispatch.yaml 中配置子域,然后部署它:

    https://cloud.google.com/appengine/docs/standard/php7/reference/dispatch-yaml

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-03-07
      • 2013-04-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多