So I have a virtual server set up for www.company.com:
<VirtualHost *:80>
ServerName www.company.com
</VirtualHost>
And then I would like to direct *.company.com to another site. How do I do it? I could think of www. and inside. being directed at specific vhosts but "the rest" directed to a generic vhost.
Apache version is 2.2.4
The solution at your answer:
The polite use of wildcards "catch all" domains:
Note that the order is meaningful, the catchall domain has to be the last one. This is particularly useful to avoid a mistyping in the client url raises an "inexistent host" error, letting the customer of your company think you are a bad server admin (not him a bad typer :P).