如何跨服务器或在 DNS 设置中设置动态子域

发布于 2024-07-25 00:14:43 字数 236 浏览 2 评论 0原文

  1. 我有 www.did5.com 指向 google appengine 服务器

  2. 我想让 anyname.did5.com 指向 www.did5.com /anyname

  3. 地址栏中的url仍然是anyname.did5.com

我找不到使用 dns 设置(主机记录)的方法,

有人可以吗?

请帮忙..

  1. I have www.did5.com point to google appengine server

  2. I want to have anyname.did5.com point to www.did5.com/anyname

  3. And the url in address bar still anyname.did5.com

I can't find the way to do by using dns setting (host records)

Can anyone do ?

Please help..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

金橙橙 2024-08-01 00:14:44

有同样的愿望,但必须从我的域名托管到 appengine 站点进行 HTTP 301 重定向。 它可以正常工作,但需要有一个可用的托管,而不仅仅是域名停放。
因此,请尝试编辑“.htaccess”文件,该文件必须位于站点托管的根目录中,

Redirect 301 / http://anydomain.com/any

Have the same wish, but had to do HTTP 301 redirect from my domain hosting to an appengine site. It works normally, but it's required to have a working hosting, but not only domain parking.
So please try to edit ".htaccess" file, which must be in the root of site hosting, with

Redirect 301 / http://anydomain.com/any
很酷不放纵 2024-08-01 00:14:44

遗憾的是,App Engine 目前不支持“通配符”CNAME。 您必须专门对要使用的每个域进行 CNAME 并在控制面板中对其进行配置。 目前,执行您想要的操作的唯一方法是托管您自己的反向代理。

Unfortunately, App Engine doesn't currently support 'wildcard' CNAMEs. You have to specifically CNAME each domain that you want to use and configure it in the control panel. The only way to do what you want, currently, would be to host your own reverse proxy.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文