Virtualhost For Wildcard Subdomain and Static Subdomain
问题 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 host. This is what I have (excluding example.com because it just makes it messier). <VirtualHost *> ServerName app1.example.com ServerAlias app1.example.com DocumentRoot = /var/www/app1 # Other configuration for this app here </VirtualHost> <VirtualHost *> ServerName wildcard.example.com ServerAlias *.example.com DocumentRoot = /var/www/wildcard # other