【问题标题】:Fowarding Customer Subdomain to appspot subdomain in google app engine将客户子域转发到谷歌应用引擎中的 apppot 子域
【发布时间】:2015-01-30 06:04:39
【问题描述】:

我们正在构建一个 SAAS 产品,我们希望将其作为已安装/已安装在他们网站上的产品提供给我们的客户。

即我们的应用位于http://saasproduct.appspot.com

我们两个不同客户的网站是http://www.cust1.comhttp://www.cust2.com

我可以为指向 cust1.saasproduct.appspot.com 的 cust1 创建 www 的 cname 记录吗 和 cname 记录 www 的 cust2 指向 cust2.saasproduct.appspot.com

有可能吗?

我可以使用 Compute Engine 实现类似的目标吗?

【问题讨论】:

    标签: google-app-engine dns subdomain cname


    【解决方案1】:

    最合理的大概就是按照这里的概念,使用自己的域:

    Google Custom Domains

    基本上您将创建 cust1.saasproduct.com、cust2.saasproduct.com。两者都会有到 Google 的服务器的 cname 记录,并会为您的应用程序提供服务。

    另一种选择是使用:

    Virtual IPs

    然后,您可以将所有客户域命名为单个应用程序,如果您需要稍微不同的页面服务,大概从该应用程序检查域名。

    您还可以让 cust1.saasproduct.appspot.com、cust2.saasproduct.appspot.com 名称正常工作。但是,您需要将部署的版本命名为 cust1、cust2,这绝对是一个 hack 并且难以维护。

    【讨论】:

    • 我可以手动完成,但是对于数百个客户来说,这可能很麻烦,在这种情况下,我们需要明确的答案来确定黑客的可靠性。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-05-07
    • 1970-01-01
    • 2016-06-04
    • 1970-01-01
    • 1970-01-01
    • 2010-11-27
    相关资源
    最近更新 更多