1 Answer
1

Any request with a Host header that does not match the ServerName in any <VirtualHost> section falls through to the "main" server configuration. As such here is no way to outright prevent a connection, but you can "short circuit" the request by sending back a blank response, or by pointing DocumentRoot somewhere that doesn't exist.