I would like to setup a VirtualHost which allows for wildcard subdomains such as
bar.sites.example.com. I do not, however, wish to allow multiple level subdomains such as
foo.bar.sites.example.com. The following meets the first requirement but not the second. It could be accomplished with mod_rewrite, however, I expect there is a simpler way. I am using Apache 2.2 but could upgrade if necessary. How is this accomplished?
<VirtualHost *:80> ServerName sites.example.com ServerAlias *.sites.example.com # .... </VirtualHost>