Apache 每个子域都指向同一个目录
我在 Apache 上创建一些虚拟主机时犯了一些错误,现在每次我访问 some_random_subdomain.mysite.com 时,如果该子域不存在或者未正确应用,它会重定向到特定目录(该目录已分配给特定目录)子域),我不知道我该怎么做才能阻止它。请提供一些帮助。
I have made something wrong while creating some virtual hosts on Apache and now everytime I go to some_random_subdomain.mysite.com, if this subdomain does not exist or if it is not applied properly it redirects to a specific directory (which is assigned to a specific subdomain) and I don't know what do I have to do to stop it. Some help please.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否在任何地方使用过
*.domain.com
?例如:这将导致虚拟主机用于所有没有虚拟主机的子域。
Have you used
*.domain.com
anywhere? For example:This would cause the Virtualhost to be used for all subdomains that don't have Virtualhosts.