Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为了使用 sub 和 sub sub domin 在本地测试博客,我已放入主机文件
127.0.0.1 sub1.domain.com sub2.127.0.0.1 sub2.sub1.domain.com
但它只适用于第一个。是否有可能使两者都以某种方式工作?
您输入主机不要将文本附加到 IP 地址
> 127.0.0.1 sub1.domain.com > 127.0.0.1 sub2.sub1.domain.com