If anyone still needs this, I've created a CPAN module to help with this:
Plack::App::HostMap
In reply to Re^2: Plack and multiple domains by srchulo in thread Plack and multiple domains by szabgab