If I have the following Apache configuration and wildcard *. s1.ex.com pointing to the server
<VirtualHost *> ServerName example.com DocumentRoot /var/www/example.com </VirtualHost> <VirtualHost *> ServerName example.net DocumentRoot /home/user2/web/example.net </VirtualHost>
Is it possible to automatically get the domains
example.net.s1.ex.com to automatically point to their respective vhost?
Edit: I'm looking for a solution that automatically do the same as if I had added ServerAlias as manually.