【问题标题】:Multiple Google App Engine projects share single domain?多个 Google App Engine 项目共享一个域?
【发布时间】:2014-08-26 20:57:19
【问题描述】:

我们正在考虑将现有应用程序迁移到 Google App Engine。

目前我们有多个由 Nginx 代理的项目,使用 1 个域下的不同位置。为简单起见,假设我们有 4 个项目:

// api
location /api {
    proxy_pass http://www.example.com/api;
}

// desktop web app
location /desktop {
    proxy_pass http://www.example.com/desktop;
}

// mobile web app
location /mobile {
    proxy_pass http://www.example.com/mobile;
}

// static landing page
location / {
    proxy_pass http://www.example.com/landing;
}

我的问题是:

  • 将这 4 个项目迁移到 Google App Engine 的最佳做法是什么?

根据我的理解,我们必须将这 4 个项目合并为 1 个具有 4 个独立模块的单个项目。对我来说,让一个庞大的项目包含所有内容听起来并不理想。

  • 是否可以让单个域为多个 Google App Engine 项目提供服务?

谢谢。

【问题讨论】:

    标签: google-app-engine


    【解决方案1】:

    根据this,他们没有提到是否有限制。但是看看这些步骤,我看不出你怎么不能在多个项目上设置同一个域。只要您正确更改 CNAME,然后确保每个项目在内部以正确的方式重定向,一切都应该正常。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-10-17
      • 1970-01-01
      • 2014-12-25
      • 2023-04-07
      • 2014-01-13
      • 1970-01-01
      • 2011-02-02
      相关资源
      最近更新 更多