Yes, you can set a rewrite in the default site itself. Any hosts that do not match any of my listening servers, are redirected to a default site.
Code:
--snip--
<Directory /var/www/>
Options FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
RedirectMatch ^/$ http://www.myserver.com/
</Directory>
--snip--
Hope that helps. Of course you can make more rules of course.
Bookmarks