in reply to Plack and multiple domains
I think its just a matter of using
and then having some Plack::App::URLMap dispatch apps based on Host: header ( PSGI SERVER_NAME or HTTP_HOST var)--listen localhost --listen localpost --listen localfoobar
$urlmap->map( "http://localhost/" => $app1); $urlmap->map( "http://localpost/" => $app2); $urlmap->map( "http://localfoobar/" => $app3);
I'm not sure you need the multiple --listen options if all the hostnames bind to the same IP
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Plack and multiple domains
by srchulo (Sexton) on May 17, 2014 at 20:02 UTC |
In Section
Seekers of Perl Wisdom