Is it possible to setup one virtual host configuration for multiple subdomains using some sort of pattern matching?
What I want to achieve is something like the following:
<VirtualHost 172.20.30.40>
ServerName www.([a-z]+).domain.tld
DocumentRoot /www/subdomains/$1
ErrorLog /var/log/apache/$1_error_log
CustomLog /var/log/apache/$1_access_log
</VirtualHost>
0 Answers