Forum Moderators: phranque
I am wondering if anyone knows the cleanest way to set up say *wildcard* subdomains with Apache. We have multiple subdomains we are considering and rather than relying on human error to set them up, we would like to use a wildcard system to set up the subdomains.
Does anyone have any thoughts or ideas on what is the best way to do such a thing?
Cheers,
Berry
What do you mean by a wildcard system? If you have multiple subdomains you are going to serve up different content, no? Apache's Virtual Host [httpd.apache.org] feature handles this nicely. You setup a different <VirtualHost> container for each subdomain, one of which could have a ServerAlias that matches any other subdomains not specifically set up. The Apache documentation explains this in detail.