Apache handles things in a slightly odd manor when it comes to the default site that is shown when a domain is not specified.
Apache handles the configuration files in alphabetical order as they appear, so if you have:
/etc/apache2/sites-available/site01.com is going to be the
default server that is shown when nothing else matches the request being handled.
To work around this, you'd create a new VirtualHost block and place it inside of a new configuration file that's prefixed with a number. For example:
You can set
000-default.conf to point to a separate directory and handle the request as you'd like, display a message within a simple
index.html file, etc.
To create the symlink you'd then run: