I would like to set up Apache virtual hosts to automatically assign document roots for domains and subdomains. Id rather describe it in example:
subdomain.domain.com -> /www/com/domain/subdomain
a.b.c.d.e.f.g.h.infinite.depth.domain.com -> /www/com/domain/depth/infinite/h/g/f/e/d/c/b/a
I would like something that is very universal and can be used with any domain without configuration.
Is that possible? Can you please suggest me something to do that?