Mount the app at the gateway, instead of at the root with downstream gateway handling.
This commit is contained in:
parent
b0af5d2cd3
commit
468f02c5e1
1 changed files with 3 additions and 1 deletions
4
app.psgi
4
app.psgi
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue