带服务的App Engine自定义域 [英] App Engine custom domain with service

查看:101
本文介绍了带服务的App Engine自定义域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照DNS记录上的说明设置了自定义域,并通过App Engine设置了自定义域 :

I set up a custom domain with App Engine after following the instructions on DNS records:

https://cloud.google.com/appengine/docs/standard/java/mapping-custom-domains

它适用于使用URL的默认服务 http://MY_CUSTOM_DOMAIN ,但是我无法使用URL http://SERVICE_ID.MY_CUSTOM_DOMAIN .我需要映射一组不同的DNS记录吗?

It's working for the default service using URL http://MY_CUSTOM_DOMAIN but I'm unable to access other services with URLs http://SERVICE_ID.MY_CUSTOM_DOMAIN. Do I need to map a different set of DNS records?

推荐答案

在GCP文档

Check how to use subdomains and how wildcard mapping works in the GCP docs here (actually these are the next steps at the website which you've followed and linked). Make sure that your DNS provider permits wildcards in CNAME host entries, otherwise such mapping will not be possible.

此博客文章显示了一个真实的示例,该示例使用App Engine将子域与服务进行匹配.

This blog post shows a real-life example of matching subdomains to services with App Engine.

这篇关于带服务的App Engine自定义域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆