restrict default server on apache

I would like to deny access to the default server on apache. Only want to allow the virtual servers. Example: I want to disable access to a request with a sub domain like (because is not a web server but a simplya name of a machine). But by default apache will interpret that sub domain as adefault server and serve pages from /var/www directory. How can I disable that?

Thanks in advance.



Howdy -- it sounds like what you may want is to setup a Virtual Server that can act as a default page... but one that's served out of /home rather than /var/www.

If you setup a new Virtual Server, you can set it up as the default website for your server by going into Server Configuration -> Website Options, and setting "Default website for IP address" to "Yes".

Will that do what you're after?