From 468f02c5e13a8da757cfd80cda57510f75bc83dd Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 5 Jan 2011 09:09:44 -0800 Subject: [PATCH] Mount the app at the gateway, instead of at the root with downstream gateway handling. --- app.psgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.psgi b/app.psgi index fe5ff6122..fd4e9c506 100644 --- a/app.psgi +++ b/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; } }