Apache 2.2禁用未配置的子域
有一个Web服务器,它有example.com、www.example.com、my.example.com、shop.example.com、static.example.com。除www.example.com外,所有网站都使用https。我的问题是当我键入randomstring.example.com->shop.example.com得到服务时。但我什么都不想要。例如,mail.google.com是一个有效的子域。如果您键入johndoe.google.com,您会看到“此网页不可用”。如何通过Vhost/.htaccess文件实现这一点Apache 2.2禁用未配置的子域,apache,.htaccess,apache2,vhosts,Apache,.htaccess,Apache2,Vhosts,有一个Web服务器,它有example.com、www.example.com、my.example.com、shop.example.com、static.example.com。除www.example.com外,所有网站都使用https。我的问题是当我键入randomstring.example.com->shop.example.com得到服务时。但我什么都不想要。例如,mail.google.com是一个有效的子域。如果您键入johndoe.google.com,您会看到“此网页不可用