如何禁用Apache的主服务器function?

这个文件说这个

Due to the fact that www.example1.com is first in the configuration file, it has the highest priority and can be seen as the default or primary server. That means that if a request is received that does not match one of the specified ServerName directives, it will be served by this first VirtualHost. 

我怎么能禁用这个,我不希望Apache的服务任何文件,如果任何启用的虚拟主机不匹配?

只要让你的第一个<VirtualHost>一个说不的任何请求。

 <VirtualHost *:80> ServerName i-dont-want-your-requests Order allow,deny Deny from all </VirtualHost> 

无论如何,要利用stream量,你可以模拟一个页面,告诉用户在这里没有什么可以看到,他一定是进入了错误的(子)域。
也许给一些可能的域用户可能一直在寻找或只是显示一些广告。

让stream量浪费是一种耻辱,更不用说这样的页面在用户友好性上的差异,而不是简单的“访问被拒绝”页面。