Mount the app at the gateway, instead of at the root with downstream gateway handling.

This commit is contained in:
Colin Kuskie 2011-01-05 09:09:44 -08:00
parent b0af5d2cd3
commit 468f02c5e1

View file

@ -21,8 +21,10 @@ builder {
Plack::Util::load_psgi($psgi);
};
$first_app ||= $app;
my $gateway = $config->get('gateway');
$gateway =~ s{^/?}{/};
for my $sitename ( @{ $config->get('sitename') } ) {
mount "http://$sitename/" => $app;
mount "http://$sitename$gateway" => $app;
}
}