将子域映射到App Engine上的特定服务

编程入门 行业动态 更新时间:2024-10-27 00:28:58
本文介绍了将子域映射到App Engine上的特定服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想将notification.api.example.co.uk映射到名为notification-api

我已经在应用引擎上成功添加了一个名为api.example的自定义域,因此希望以下dispatch.yaml就足够了:

I've added a custom domain on app engine called api.example successfully, so was hoping the following dispatch.yaml would be sufficient:

dispatch: - url: "notification.api.example.co.uk/*" service: notification-api

因此,我希望任何请求,例如到notification.api.example.co.uk/test-api的POST都可以将请求路由到服务并提供响应,但它根本不会到达后端.

I was hoping, therefore, any request, for example, a POST to notification.api.example.co.uk/test-api would route the request to service and render a response, but it doesn't reach the backend at all.

此路由中是否存在错误,文档令人困惑?

Is there something wrong in this routing, the docs are quite confusing?

推荐答案

您需要映射通配符子域到您的应用程序引擎.我们需要知道api.example.co.uk的所有内容都将转到您的应用中,以便将notifications.api.example.co.uk路由给您.

You need to map a wild card subdomain to your app engine. We need to know that everything for api.example.co.uk goes to your app in order to route notifications.api.example.co.uk to you.

更多推荐

将子域映射到App Engine上的特定服务

本文发布于:2023-07-16 04:19:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1117768.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:将子域   App   Engine

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!