[英]Apache 2.2 disable unconfigured subdomains
There is a webserver which has example.com, www.example.com, my.example.com, shop.example.com, static.example.com. 有一个网络服务器,其中包含example.com,www.example.com,my.example.com,shop.example.com,static.example.com。 All sites except www.example.com is on https.
除www.example.com以外的所有网站均位于https上。 My problem is when I type randomstring.example.com -> shop.example.com gets served.
我的问题是当我输入randomstring.example.com-> shop.example.com时得到了服务。 But I want nothing to be served.
但是我什么也不想得到。 For example mail.google.com is a valid subdomain.
例如,mail.google.com是有效的子域。 if you type johndoe.google.com you see "This webpage is not available".
如果您键入johndoe.google.com,则会看到“此网页不可用”。 How to achieve this via Vhost/.htaccess file.
如何通过Vhost / .htaccess文件实现此目的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.