如何在 Windows 上创建子域?

发布于 2024-07-12 10:32:04 字数 246 浏览 3 评论 0原文

我只想向我的计算机 FQDN 添加几个子域,以便我可以拥有一些虚拟服务器 (apache)。

有什么想法吗?

注意:我需要将别名添加到我的计算机,例如 a.foo.com 和 b.foo.com。 我不认为 apache 会创建这些别名。

替代方案:我决定不尝试向我的域名添加内容(因为那时我必须编辑 dns 服务器),而是为单独的端口配置虚拟主机。 这样一切就由我的电脑决定了。 尽管如此,还是感谢您的帮助!

I just want to add a couple subdomains to my computers FQDN so that I can have some Vitrual Servers (apache.)

Any ideas?

Note: I need to add the aliases to my machine, like a.foo.com and b.foo.com. I don't think apache makes those aliases.

Alternative: I decided that instead of trying to add stuff to my domain name (since then I'd have to edit the dns server) I would configure virtual hosts for a separate port. That way it's all up to my computer. Thanks for the help nonetheless!

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

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

发布评论

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

评论(1

苏璃陌 2024-07-19 10:32:04

如果这是在 Windows 域上:进入 DC 上的 DNS 管理工具,并添加将所需名称指向原始计算机名称的主机条目(CN 记录,而不是 A 记录)。

如果您在一台(非服务器)机器上完成这一切:编辑主机文件,并将名称指向正确的 IP 地址。

If this is on a Windows domain: go into the DNS management tool on the DC, and add host entries (CN records, not A records) pointing the desired names to the original computer name.

If you're doing this all on one (non-server) box: edit the hosts file, and point the names to the right IP address.

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