I have an odd situation where I want to have the URLs app1.example.com, example.com and *.example.com all using a different virtual h
DocumentRoot /var/www/app1
ServerName app1.example.com
DocumentRoot /var/www/example
ServerName example.com
DocumentRoot /var/www/wildcard
ServerName other.example.com
ServerAlias *.example.com
Should work. The first entry will become the default if you don't get an explicit match. So if you had app.otherexample.com point to it, it would be caught be app1.example.com.