Possibly I am missing something, but is it different from, say, nginx's `root /var/www/$http_host`? The description sounds as if a whole web server is written for that feature.
Especially love how easy it is to set up localhost subdomains and ssl.
Can you point me to an example I would love to check it out