【问题标题】:App engine subdomain mapping to a specific service应用引擎子域映射到特定服务
【发布时间】:2021-01-06 00:35:49
【问题描述】:

我有一个 angular-go 应用程序。 我想使用应用引擎来部署它。

我的 Angular 服务是默认服务,因此我可以使用它访问它

domain.org/

我现在想使用

访问用户服务 api
user.domain.org/api/user

我将子域添加到我的应用引擎项目和包含内容的 dispatch.yaml 文件中

dispatch:
   - url: "domain.org/*"
     service: default

   - url: "user.domain.org/*"
     service: user

但我无法使用 api 访问

domain.org/api/user

但是,我可以使用

user-dot-projectID.uc.r.appspot.com/api/user

如何使用我自己的域名domain.org访问这个api

user.domain.org/api/user

【问题讨论】:

    标签: angular go google-app-engine dns subdomain


    【解决方案1】:

    在问题中,您没有说明您是否在您的域名注册商上为指向ghs.googlehosted.com 的子域添加了CNAME 记录。你应该有一个CNAME 记录user.domain.org 和你打算与google-app-engine 一起使用的任何其他子域指向ghs.googlehosted.com。然后将子域的自定义域名记录添加到您的应用引擎。关注this guide添加自定义域名。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-01-08
      • 2020-08-22
      • 2020-09-19
      • 1970-01-01
      • 2011-11-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多