S
sapphire
Guest
I'd like to be able to set up a virtual host so that domain.com responds not only to domain.com and www.domain.com, but anything.domain.com. I'm able to do this currently by adding the line:
ServerAlias *.domain.com
to the vhost.conf file in the conf folder for the virtual host, but then the regular subdomains don't work, because apache reads the main virtual host conf section before it gets to the subdomain ones. If you want subdomains to work with *.domain.com, the subdomains have to come first in the conf file.
ServerAlias *.domain.com
to the vhost.conf file in the conf folder for the virtual host, but then the regular subdomains don't work, because apache reads the main virtual host conf section before it gets to the subdomain ones. If you want subdomains to work with *.domain.com, the subdomains have to come first in the conf file.