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.
我使用 Webmin 面板版本 1.660 在服务器上托管了多个网站
如果我输入像 www.domain2.com 这样的现有子域,一切正常,但是对于像 wwwa.domain2.com 这样不存在的子域,服务器从 domain1.com 加载页面
有什么办法可以禁用此功能?
我希望不存在的子域会显示 404 错误或被重定向到适当的域。
如果您使用的是 Apache,请在 Google 中搜索 404 重定向和 url 重写。此外,如果你想把它放在未来,那么你还需要配置你的 DNS 以捕获所有子域并重定向到你的 HTTP 服务器