X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst.pm;h=f69afe0538a4c9b2e561a8c3afa3ebb852a35416;hp=ed77ef8b13c2b392e87cce5edf063ee1ff6e2957;hb=d685f38e02912b15dc8d08499e4006561d7174a2;hpb=27b0a43637499f7e32fa68630d5300d44268f461 diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index ed77ef8..f69afe0 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -3157,7 +3157,26 @@ headers. If you do not wish to use the proxy support at all, you may set: - MyApp->config(ignore_frontend_proxy => 1); + MyApp->config(ignore_frontend_proxy => 0); + +=head2 Note about psgi files + +Note that if you supply your own .psgi file, calling +C<< MyApp->psgi_app(@_); >>, then B. + +You either need to apply L yourself +in your psgi, for example: + + builder { + enable "Plack::Middleware::ReverseProxy"; + MyApp->psgi_app + }; + +This will unconditionally add the ReverseProxy support, or you need to call +C<< $app = MyApp->apply_default_middlewares($app) >> (to conditionally +apply the support depending upon your config). + +See L for more information. =head1 THREAD SAFETY