how to configure apache2 webserver to serve pages only if request contain valid hostname/domain (one of VirtualHost)?
I've made some experiment, in my laptop hosts file I entered my server IP and some invented domain name (which doesn't exist in real, even in one of my VirtualHost file ie. abfgffd.com). To my suprise main apache server page displays instead of error message that this page doesn't exist.
So if somebody enter ANY hostname (directed by hosts file to my IP) my main webpage will appear. Strange :|
How could I prevent it? Did I miss some important apache configuration option?