blogger.com 子域

发布于 2024-09-17 18:06:45 字数 1459 浏览 4 评论 0原文

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

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

发布评论

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

评论(2

请叫√我孤独 2024-09-24 18:06:45

这可以通过 DNS 服务器配置中的包罗万象的 A 记录规则来完成。例如,在绑定中,您可以使用如下内容:

*.example.com.  IN A    127.0.0.1

这将使 everything.example.com 解析为 127.0.0.1。然后,在 http 服务器上使用适当的 VHost,您可以将所有请求重定向到特定的服务器端脚本(例如 PHP),然后该脚本可以检测所使用的主机名,并以所需的内容进行响应。

This can be done by a catch-all A record rule in your DNS server configuration. For example, in bind, you would use something like this:

*.example.com.  IN A    127.0.0.1

This would make anything.example.com resolve to 127.0.0.1. Then, using an appopriate VHost on your http server, you can redirect all requests to a particular server-side script (for example PHP), which can then detect the hostname that was used, and respond with the content required.

我不咬妳我踢妳 2024-09-24 18:06:45

可以使用的字符有限制(实际上,由于 IDN 的工作方式,有两组独立的限制)。长度方面存在实际限制。除此之外没有。事实上,负责 .blogger.com 的实体创建该子域名与负责 .com 的实体创建子域名没有太大区别,去年年初,该子域名的数量为 80,000,000 个。

There are restrictions on the characters that can be used (actually, two separate sets of restrictions due to the way IDNs work). There are practical limitations in terms of length. Beyond that no. Indeed, it's not much different for the entity in charge of .blogger.com to create a subdomain of that than for the entity in charge of .com to do so, and there were 80,000,000 of those at the start of last year .

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