Hi,
I'm trying to set up on an apache 2.0 server the following configuration:
http://mydomain.net => /home/mydomain.net/_
http://www.mydomain.net => /home/mydomain.net/www
http://sub1.mydomain.net => /home/mydomain.net/sub1
http://sub2.mydomain.net => /home/mydomain.net/sub2
http://*.mydomain.net => /home/mydomain.net/_
I can do that with several <VirtualHost> with different ServerName, but
I don't want annoyed me by adding a new directive for each subdomain.
I've tried the VirtualDocumentRoot in that way:
VirtualDocumentRoot /home/mydomain.net/%-3+
and it works pretty good for existing subdomain, but I've got an 404
error for other domain.
So how can I keep this setting but redirecting unexisting subdomain (no
folder in /home/mydomain.net/) to a default one ?
Regards,
Matthieu