如何在 Windows 上创建子域?
我只想向我的计算机 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果这是在 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.